Explorar o código

:zap: 切换api地址为本地

smallchill %!s(int64=6) %!d(string=hai) anos
pai
achega
ed5baff872
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      vue.config.js

+ 2 - 2
vue.config.js

@@ -26,9 +26,9 @@ module.exports = {
     proxy: {
     proxy: {
       '/api': {
       '/api': {
         //本地服务接口地址
         //本地服务接口地址
-        //target: 'http://localhost',
+        target: 'http://localhost',
         //远程演示服务地址
         //远程演示服务地址
-        target: 'https://saber.bladex.vip/api',
+        //target: 'https://saber.bladex.vip/api',
         ws: true,
         ws: true,
         pathRewrite: {
         pathRewrite: {
           '^/api': '/'
           '^/api': '/'