戴艳蓉 3 years ago
parent
commit
25f46efee5
2 changed files with 9 additions and 5 deletions
  1. 0 3
      src/config/env.staging.js
  2. 9 2
      src/views/login/index.vue

+ 0 - 3
src/config/env.staging.js

@@ -5,10 +5,7 @@ module.exports = {
   api: {
     userApi: 'http://inv.test241.wanyuhengtong.com/',
     baseApi: 'http://stock.test241.wanyuhengtong.com/',
-<<<<<<< HEAD
     tableApi: 'http://inv.sit.wanyuhengtong.com/',
-=======
->>>>>>> live
   },
   fileURL: `https://api2.edusit.zretchome.com`,
   appId: 'wx5ac3a2c2d72b6f26',

+ 9 - 2
src/views/login/index.vue

@@ -150,8 +150,8 @@ export default {
       ver: "",
       show: false,
       loginForm: {
-        username: "17744520491",
-        password: "123asd",
+        username: "",
+        password: "",
       },
       loginRules: {
         username: [
@@ -182,6 +182,13 @@ export default {
     },
   },
   mounted() {
+    console.log(process.env.NODE_ENV);
+    if(process.env.NODE_ENV==='development'){
+       this.loginForm= {
+        username: "17744520491",
+        password: "mlp123",
+      }
+    }
     // this.getversion();
     if (this.loginForm.username === "") {
       this.$refs.username.focus();