Explorar o código

修改iframe 路由显示

asd123a20 %!s(int64=2) %!d(string=hai) anos
pai
achega
ada8d08064
Modificáronse 2 ficheiros con 5 adicións e 5 borrados
  1. 2 2
      src/layout/components/InnerLink/index.vue
  2. 3 3
      vue.config.js

+ 2 - 2
src/layout/components/InnerLink/index.vue

@@ -22,8 +22,8 @@ export default {
   },
   computed: {
     url() {
-      if (this.src.includes('http://localhost')) {
-        const url = this.src.replace('http://localhost', '');
+      if (this.src.includes('http://InnerLink')) {
+        const url = this.src.replace('http://InnerLink', '');
         return url;
       }
       return this.src;

+ 3 - 3
vue.config.js

@@ -37,11 +37,11 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        // target: `http://fuyu.scapp.cn/prod-api/`,
-        target: `http://192.168.0.63/`,
+        target: `http://fuyu.scapp.cn/prod-api/`,
+        // target: `http://192.168.0.63/`,
         changeOrigin: true,
         pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: '/prod-api'
+          ['^' + process.env.VUE_APP_BASE_API]: ''
         }
       },
       '/dw': {