소스 검색

Merge branch 'master' of http://121.40.40.223:3000/zizhong.wang/Lexus-media

suxinf 4 년 전
부모
커밋
7f3be8050d
3개의 변경된 파일18개의 추가작업 그리고 16개의 파일을 삭제
  1. 2 2
      package-lock.json
  2. 1 0
      src/App.vue
  3. 15 14
      vue.config.js

+ 2 - 2
package-lock.json

@@ -2458,8 +2458,8 @@
     },
     "axios": {
       "version": "0.21.1",
-      "resolved": "https://registry.npm.taobao.org/axios/download/axios-0.21.1.tgz",
-      "integrity": "sha1-IlY0gZYvTWvemnbVFu8OXTwJsrg=",
+      "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
+      "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
       "requires": {
         "follow-redirects": "^1.10.0"
       }

+ 1 - 0
src/App.vue

@@ -56,6 +56,7 @@ export default {
       })
     }).then(function (response) {
       console.log(response);
+      if(response.data.code === 200) alert('token验证success!')
     }).catch(function (error) {
       console.log(error);
     });

+ 15 - 14
vue.config.js

@@ -1,14 +1,15 @@
-module.exports = {
-    devServer: {
-        proxy: {
-            '/api':{
-                target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口)
-                changeOrigin:true,
-                pathRewrite:{
-                    '^/api': '/'
-                }
-            }
-        }
-
-    }
-}
+module.exports = {
+    publicPath: './',
+    devServer: {
+        proxy: {
+            '/api':{
+                target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口)
+                changeOrigin:true,
+                pathRewrite:{
+                    '^/api': '/'
+                }
+            }
+        }
+
+    }
+}