Browse Source

修改配置

asd26269546 2 years ago
parent
commit
c4028f7986
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/libs/axios.js
  2. 1 1
      vue.config.js

+ 1 - 0
src/libs/axios.js

@@ -8,6 +8,7 @@ axios.interceptors.request.use(
     config => {
         console.log(config)
         // const token = getCookie('名称');注意使用的时候需要引入cookie方法,推荐js-cookie
+        console.log(window.localStorage.getItem("token"))
         var userJson = window.localStorage.getItem("token")
         if(!userJson){
             var userData = false

+ 1 - 1
vue.config.js

@@ -16,7 +16,7 @@ module.exports = {
         proxy: {
             '/api': {
 				//本地服务接口地址
-				target: 'http://36.134.91.96:10001/api',
+				target: 'https://cfm.bytesail.cn/api',
 				//远程演示服务地址,可用于直接启动项目
 				//target: 'https://saber.bladex.vip/api',
 				ws: true,