瀏覽代碼

BUG修改

JX.Li 1 年之前
父節點
當前提交
9f660cfd57
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/views/system/user/index.vue
  2. 1 1
      vue.config.js

+ 2 - 2
src/views/system/user/index.vue

@@ -638,7 +638,7 @@ export default {
       this.$refs["form"].validate(valid => {
         if (valid) {
           if (this.form.userId != undefined) {
-            if (this.form.postIds !== '')
+            if (this.form.postIds !== ''&& this.form.postIds.length > 0)
               this.form.postIds = [this.form.postIds]
             else
               this.form.postIds = []
@@ -648,7 +648,7 @@ export default {
               this.getList();
             });
           } else {
-            if (this.form.postIds !== '')
+            if (this.form.postIds !== '' && this.form.postIds.length > 0)
               this.form.postIds = [this.form.postIds]
             else
               this.form.postIds = []

+ 1 - 1
vue.config.js

@@ -35,7 +35,7 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://123.249.30.140:8080`,
-        target: `http://localhost:8081`,
+        target: `http://localhost:8080`,
         // target: `http://124.221.101.24:8082`,
         changeOrigin: true,
         pathRewrite: {