11wqe1 há 6 dias atrás
pai
commit
aecfab7ac9
2 ficheiros alterados com 3 adições e 1 exclusões
  1. 1 1
      src/common/axios.config.js
  2. 2 0
      src/components/dialog/addMenuDialog.vue

+ 1 - 1
src/common/axios.config.js

@@ -113,7 +113,7 @@ function put(url, params, source) {
 function get(url, param, source) {
     return new Promise((resolve, reject) => {
         let cancelToken = source ? source.token : ''
-        axios.get(url, { params: param, cancelToken  })
+        axios.get(url, { params: param, cancelToken,withCredentials: true  })
             .then(response => {
                 resolve(response)
             }, err => {

+ 2 - 0
src/components/dialog/addMenuDialog.vue

@@ -119,6 +119,8 @@ export default {
 				this.$emit("success", {item:this.form,type:this.type,tagType:this.tagType});
 			}else if (this.tagType == 'stuAdmin-sidebar') {
 				this.$emit("success", {item:this.form,type:this.type,tagType:this.tagType});
+			}else if (this.tagType == "admin-school") {
+				this.$emit("success", {item:this.form,type:this.type,tagType:this.tagType});
 			}
 		},
 		async addUrlIcon(type = "menuIcon") {