Browse Source

根节点挂载

李富豪 1 year ago
parent
commit
5885df4a01
3 changed files with 9 additions and 9 deletions
  1. 1 1
      Web/index.html
  2. 7 7
      Web/src/App.vue
  3. 1 1
      Web/src/main.ts

+ 1 - 1
Web/index.html

@@ -9,7 +9,7 @@
 </head>
 
 <body>
-  <div id="demo-app"></div>
+  <div id="root"></div>
   <script type="module" src="/src/main.ts"></script>
 </body>
 

+ 7 - 7
Web/src/App.vue

@@ -1,13 +1,12 @@
 <template>
   <a-config-provider :locale="locale">
-    <div class="demo-app">
+    <div class="app">
       <router-view />
       <!-- <div class="map-wrapper">
-      <GMap/>
-    </div> -->
+        <GMap />
+      </div> -->
     </div>
   </a-config-provider>
-
 </template>
 
 <script lang="ts">
@@ -29,8 +28,9 @@ export default defineComponent({
   }
 })
 </script>
+
 <style lang="scss" scoped>
-.demo-app {
+.app {
   width: 100%;
   height: 100%;
 
@@ -42,8 +42,8 @@ export default defineComponent({
 </style>
 
 <style lang="scss">
-#demo-app {
+#root {
   width: 100%;
   height: 100%
 }
-</style>
+</style>

+ 1 - 1
Web/src/main.ts

@@ -12,4 +12,4 @@ app.use(store, storeKey)
 app.use(router)
 app.use(antComponents)
 app.use(useDirectives)
-app.mount('#demo-app')
+app.mount('#root')