bug bug bug filters.js
This commit is contained in:
@@ -198,13 +198,17 @@ export default {
|
||||
return this.$message.error(res.msg);
|
||||
}
|
||||
Cookies.set("token", res.data.token);
|
||||
// 获取数据字典数据
|
||||
this.$http('/sys/dict/type/all', { limit: 999, page: 1 }).then(({data: res}) => {
|
||||
// console.log('[dictData] loading...', res)
|
||||
// 刷新数据字典数据
|
||||
this.$http("/sys/dict/type/all", { limit: 999, page: 1 }).then(({ data: res }) => {
|
||||
// console.log("[dictData] loading...", res);
|
||||
if (res.code === 0 && res.data) {
|
||||
localStorage.setItem('dictList', JSON.stringify(res.data))
|
||||
let dictList = {};
|
||||
res.data.map((item) => {
|
||||
Object.assign(dictList, { [item.dictType]: item.dataList });
|
||||
});
|
||||
localStorage.setItem("dictList", JSON.stringify(dictList));
|
||||
}
|
||||
})
|
||||
});
|
||||
// end
|
||||
this.$router.replace({ name: "home" });
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user