HZH-PC\HZH 4 years ago
parent
commit
b7d6aeabdc
5 changed files with 13 additions and 25 deletions
  1. 6 1
      src/App.vue
  2. 0 21
      src/ControlApp.vue
  3. 3 0
      src/components/MainPage/Todo.vue
  4. 3 0
      src/utils/bus.js
  5. 1 3
      vue.config.js

+ 6 - 1
src/App.vue

@@ -13,9 +13,14 @@
 </template>
 
 <script>
+import Bus from '@/utils/bus'
 export default {
   name: 'App',
   components: {
-  }
+  },
+  data () {
+    return {
+	  }
+  },
 }
 </script>

+ 0 - 21
src/ControlApp.vue

@@ -1,21 +0,0 @@
-<style src="@/sass/global.scss" lang="scss"></style>
-<style scoped lang="scss">
-#app {
-  width: 100%;
-  height: 100%;
-}
-</style>
-
-<template>
-  <div id="app">
-    <router-view></router-view>
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'ControlApp',
-  components: {
-  }
-}
-</script>

+ 3 - 0
src/components/MainPage/Todo.vue

@@ -54,6 +54,7 @@
 </template>
 
 <script>
+import Bus from '@/utils/bus'
 export default {
   name: 'Todo',
   components: {
@@ -66,6 +67,8 @@ export default {
       currentDate: new Date()
 	  }
   },
+  created(){
+  },
   watch: {
   },
   methods: {

+ 3 - 0
src/utils/bus.js

@@ -0,0 +1,3 @@
+import Vue from 'vue'
+
+export default new Vue()

+ 1 - 3
vue.config.js

@@ -12,9 +12,7 @@ module.exports = {
     devServer: {
         proxy: {
             '/': {
-                target: 'http://localhost:8085',
-                // target: 'http://119.23.22.31:30962',
-                // target: 'http://119.23.22.31:31588',
+                target: 'http://119.23.22.31:32002',
                 autoRewrite: true,
                 ws: false
             }