Commit bb860909 by Tang

feat: 修改定制服务接口

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