Parcourir la source

Merge branch 'deploy_0804' of jianguan-web/jg-ocs-html into master

陈瑞 il y a 3 ans
Parent
commit
218ce141c7
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      .env.practice
  2. 3 3
      src/views/power/user/userModal.vue

+ 1 - 1
.env.practice

@@ -1,5 +1,5 @@
 NODE_ENV=production
-VUE_APP_PREVIEW=true
+VUE_APP_PREVIEW=false
 VUE_APP_API_BASE_URL=http://t.ocs.360arrow.com/ocs-admin
 VUE_APP_WX_BASE_URL=//t.ocs.360arrow.com/ocs-admin/websocket/
 VUE_APP_VERSION=V1.0.1

+ 3 - 3
src/views/power/user/userModal.vue

@@ -229,9 +229,9 @@ export default {
           if (this.nowData.id) { //  编辑
             this.titleText = '编辑用户'
             this.form = Object.assign({}, this.nowData)
-            if (this.nowData.roleIds) {
-              this.form.roleNames = this.nowData.roleIds.split(',')
-            } else {
+            this.form.roleNames = this.nowData.roleIds.split(',')
+            if (!this.nowData.roleIds) {
+              this.nowData.roleIds = ''
               this.form.roleNames = []
             }
             this.form.loginFlag = Number(this.nowData.loginFlag)