Commit bb860909 by Tang

feat: 修改定制服务接口

parent 91514e48
......@@ -1044,12 +1044,14 @@ export default {
},
async getCustomServiceFromServer() {
const searchGlnRes = await this.$api.home.customService();
const { returnCode, data } = searchGlnRes;
if (returnCode === "0") {
localStorage.setItem("gs-custom-service", JSON.stringify(data));
this.showCustomService(data);
// 判断是否登录
if(localStorage.getItem('loginInfo')){
const searchGlnRes = await this.$api.home.customService();
const { returnCode, data } = searchGlnRes;
if (returnCode === "0") {
localStorage.setItem("gs-custom-service", JSON.stringify(data));
this.showCustomService(data);
}
}
},
......
......@@ -130,7 +130,7 @@ export default {
this.$message.error('查询值只能包含中英文字符和数字!');
return true;
}
return true
return false
},
async handleSearch() {
this.searchCodeShow = this.search.code;
......
......@@ -27,7 +27,7 @@ export default {
this.$message.error('查询值只能包含中英文字符和数字!');
return true;
}
return true
return false
}
},
}
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