ysy před 1 rokem
rodič
revize
990926cb87
3 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 1 0
      .gitignore
  2. 3 1
      src/views/produce/components/search.vue
  3. 1 1
      vue.config.js

+ 1 - 0
.gitignore

@@ -12,6 +12,7 @@ yarn-debug.log*
 yarn-error.log*
 .pnpm-debug.log
 .eslintcache
+.vue.config.js
 
 # Editor directories and files
 .idea

+ 3 - 1
src/views/produce/components/search.vue

@@ -45,7 +45,7 @@
     data() {
       return {
         currentTime: '',
-        userName: JSON.parse(localStorage.getItem('userInfo'))?.data?.name,
+        userName: JSON.parse(localStorage.getItem('info'))?.name,
 
         produceTaskList: [],
         search: {
@@ -57,6 +57,8 @@
     created() {
       this.getTaskList();
 
+
+
       this.updateCurrentTime();
       setInterval(this.updateCurrentTime, 1000); // 每秒更新一次时间
     },

+ 1 - 1
vue.config.js

@@ -32,7 +32,7 @@ module.exports = {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
         // target: 'http://124.71.68.31:50001',
-        target: 'http://192.168.1.107:18086',
+        target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.107:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域