|
@@ -20,10 +20,7 @@ export function setupPermission() {
|
|
|
if (hasToken) {
|
|
|
const dictStore = useDictionaryStore();
|
|
|
dictStore.checkAllData();
|
|
|
- if (
|
|
|
- !dictStore.dicts.value ||
|
|
|
- JSON.stringify(dictStore.dicts.value) === "{}"
|
|
|
- ) {
|
|
|
+ if (!dictStore.dicts.value || JSON.stringify(dictStore.dicts.value) === "{}") {
|
|
|
const res = await getUserDicts(dictStore.types);
|
|
|
if (res.data) {
|
|
|
dictStore.dicts = res?.data ?? [];
|
|
@@ -41,7 +38,7 @@ export function setupPermission() {
|
|
|
stationType: "3",
|
|
|
};
|
|
|
|
|
|
- userStore
|
|
|
+ await userStore
|
|
|
.login(acountP)
|
|
|
.then(() => {
|
|
|
next(`pro-steps`);
|