Commit 0141f9b7 by 唐玉峰

.

parent 9a1441da
......@@ -62,8 +62,8 @@ axios.interceptors.response.use(
);
export default {
post(url, params, option) {
if (!url.includes("/ClinicalRoute/ClinicalRoute/GetTCMDiseases")) {
post(url, params, option, isloading = true) {
if (isloading) {
loadingInstance = Vue.prototype.$loading(loadingOption);
}
return new Promise((resolve, reject) => {
......@@ -108,8 +108,10 @@ export default {
});
});
},
get(url, option) {
get(url, option, isloading = true) {
if (isloading) {
loadingInstance = Vue.prototype.$loading(loadingOption);
}
return new Promise((resolve, reject) => {
axios
.get(domain + url, { ...{ headers: createHeader() }, ...option })
......
......@@ -2066,7 +2066,7 @@ export default {
querySearchAsync(queryString, cb) {
if (queryString && queryString != "null") {
http.post(`/ClinicalRoute/ClinicalRoute/GetTCMDiseases?searchQuery=${queryString}`)
http.post(`/ClinicalRoute/ClinicalRoute/GetTCMDiseases?searchQuery=${queryString}`, {}, {}, false)
.then((data) => {
console.log(data);
if (data && data.length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment