Przeglądaj źródła

登录新增提交ip地址信息

xxxxx 2 lat temu
rodzic
commit
bdc59c6328
2 zmienionych plików z 3 dodań i 8 usunięć
  1. 2 2
      config/test.env.js
  2. 1 6
      src/views/Login.vue

+ 2 - 2
config/test.env.js

@@ -5,8 +5,8 @@ const prodEnv = require('./prod.env')
 module.exports = merge(prodEnv, {
   NODE_ENV: '"testing"',
   ENV_CONFIG: '"test"',
-  BASE_URL: '"http://proxy.517game.site:6100"',//测试服务器
-  // BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
+  // BASE_URL: '"http://proxy.517game.site:6100"',//测试服务器
+  BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
   // BASE_URL: '"http://192.168.0.115:8080"',
   APP_BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',    // app打包上传地址
   CONSOLE_BASE_URL: '"https://test.baoxianzhanggui.com/console-api"' //控制台测试服务器

+ 1 - 6
src/views/Login.vue

@@ -331,12 +331,7 @@ export default {
         ...this.addressInfo
       };
       this.$api.login.uploadLocationInfo(location).then(res => {
-        if (res.code == 200) {
-          this.$message({
-            message: res.msg,
-            type: "success"
-          });
-        } else {
+        if (res.code !== 200) {
           this.$message({
             message: res.msg,
             type: "error"