ソースを参照

fix 项目迁移

scorpio 3 年 前
コミット
dad4e0e41e
2 ファイル変更2 行追加5 行削除
  1. 0 1
      src/layout/top.vue
  2. 2 4
      src/page/login.vue

+ 0 - 1
src/layout/top.vue

@@ -48,7 +48,6 @@ export default {
     return { nav, user, permission }
   },
   created () {
-    console.log(this.permission.permissions)
   },
   methods: {
     dropDown (res) {

+ 2 - 4
src/page/login.vue

@@ -167,7 +167,7 @@ export default {
   created () {
     this.permission.cleanPermission()
     // fixme prod 环境暂时开启账号登录功能
-    this.dev = window.location.href.indexOf('localhost') > -1 || window.location.href.indexOf('https://dev.wutongshucloud.com/') > -1 || window.location.href.indexOf('https://prod.wutongshucloud.com/') > -1
+    this.dev = window.location.href.indexOf('localhost') > -1 || window.location.href.indexOf('https://dev.wutongshucloud.com/') > -1
     removeToken()
     this.init()
   },
@@ -225,8 +225,7 @@ export default {
           } else {
             res.data.typeName = '服务商'
           }
-          const data = this.user.info
-          this.user.setUserInfo(Object.assign(res.data, data))
+          this.user.setUserInfo(res.data)
           this.getPermission()
         }
       })
@@ -269,7 +268,6 @@ export default {
       this.$api.login.qrCodeLogin({ sessionId: this.sessionId }).then(res => {
         if (res.code === 200) {
           const tmp = res.data
-          console.log(Object.prototype.hasOwnProperty.call(tmp, 'phone'))
           if (Object.prototype.hasOwnProperty.call(tmp, 'phone')) {
             const params = {
               tenantId: '000000',