瀏覽代碼

Merge branch 'dev' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend into dev

汪钰 3 年之前
父節點
當前提交
6bb9195239
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      ele-admin-template/src/layout/index.vue
  2. 2 0
      ele-admin-template/vue.config.js

+ 1 - 0
ele-admin-template/src/layout/index.vue

@@ -148,6 +148,7 @@
     methods: {
     methods: {
       /* 侧栏折叠切换 */
       /* 侧栏折叠切换 */
       updateCollapse(value) {
       updateCollapse(value) {
+        // console.log('value:', this.$store.state.user.menus);
         this.$store.dispatch('theme/setCollapse', value);
         this.$store.dispatch('theme/setCollapse', value);
       },
       },
       /* 双侧栏一级折叠切换 */
       /* 双侧栏一级折叠切换 */

+ 2 - 0
ele-admin-template/vue.config.js

@@ -16,6 +16,8 @@ module.exports = {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
       '/api': {
         target: 'http://192.168.3.51:18086', // 跨域请求的地址
         target: 'http://192.168.3.51:18086', // 跨域请求的地址
+        // target: 'http://192.168.3.35:8080', // kang杨威
+        // target: 'http://192.168.3.31:8080', // 黄峥嵘
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
         pathRewrite: {
           '^/api': ''
           '^/api': ''