|
|
@@ -61,6 +61,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import baseLogo from '/static/logo.png';
|
|
|
import { useAuthStore } from '@/store/auth';
|
|
|
+import { useCollectStore } from '@/store/collect';
|
|
|
import { onMounted, ref } from 'vue';
|
|
|
import { showError } from '@/common/composeabe/ErrorDisplay';
|
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
|
@@ -74,10 +75,10 @@ import type { Rules } from 'async-validator';
|
|
|
import { closeToast, toast } from '@/components/dialog/CommonRoot';
|
|
|
import FlexRow from '@/components/layout/FlexRow.vue';
|
|
|
import CommonRoot from '@/components/dialog/CommonRoot.vue';
|
|
|
-import { navTo } from '@/components/utils/PageAction';
|
|
|
|
|
|
const type = ref('wechat');
|
|
|
const authStore = useAuthStore();
|
|
|
+const collectStore = useCollectStore();
|
|
|
|
|
|
const loginFormModel = ref({
|
|
|
mobile: '',
|
|
|
@@ -118,6 +119,7 @@ function loginWechat() {
|
|
|
type: 'success',
|
|
|
content: '登录成功',
|
|
|
});
|
|
|
+ collectStore.loadCollectableModules();
|
|
|
setTimeout(() => redirectToIndex(), 200);
|
|
|
}).catch(showError);
|
|
|
})
|