Parcourir la source

feature(proxy 代理)

liujing il y a 8 mois
Parent
commit
55b8855ec6
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      src/api/mapping.js
  2. 1 1
      vue.config.js

+ 1 - 1
src/api/mapping.js

@@ -255,6 +255,6 @@ export function getBasicInfo(data) {
 }
 // 获取甜甜圈接口
 export function getSweetList(data) {
-  const url = `/core/v1/biz/service-graph`
+  const url = `/v1/biz/service-graph`
   return instance2.get(url, data)
 }

+ 1 - 1
vue.config.js

@@ -54,7 +54,7 @@ module.exports = {
         }
       },
       '/core': {
-        target: 'http://observe-front.cestong.com.cn/',
+        target: 'http://observe-front.cestong.com.cn/core',
         changeOrigin: true,
         pathRewrite: {
           '^/core': ''// 重写路径