瀏覽代碼

改变请求地址

xiaomin 5 年之前
父節點
當前提交
7e81e89283
共有 2 個文件被更改,包括 8 次插入3 次删除
  1. 1 2
      config/index.js
  2. 7 1
      src/views/sys/role.vue

+ 1 - 2
config/index.js

@@ -13,8 +13,7 @@ module.exports = {
       '/api': {
         // target: "http://invoice.back.jkcredit.com/",
         // target: "http://192.168.1.184:18081/",
-        target: "http://hub.invoice.back.jkcredit.com/",
-        // target: "http://172.31.1.167:18081/",
+        target: "http://hub.invoice.jkcredit.com/",
         changeOrigin: true,
         pathRewrite: {
           '^/api': ''

+ 7 - 1
src/views/sys/role.vue

@@ -256,7 +256,12 @@ export default{
     },
     // 获取查看权限ID
     handleSelectionChange(val) {
-        this.multipleSelection = val;
+      this.multipleSelection = val;
+      if(this.mutipleSelection.length === 3) {
+        console.log(hahahaha)
+      }else {
+        console.log(heihei)
+      }
     },
     // 打开修改角色的弹框
     openEidtRole(user) {
@@ -416,4 +421,5 @@ export default{
   text-align: center;
   margin-top: 15px;
 }
+
 </style>