Переглянути джерело

:zap: 切换api地址为本地

smallchill 6 роки тому
батько
коміт
ed5baff872
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      vue.config.js

+ 2 - 2
vue.config.js

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