|
@@ -13,7 +13,7 @@ import dayjs from 'dayjs'
|
|
|
import NoticeStart from './model/notice-start'
|
|
|
import OFullRefresh from '@/components/o-full-refresh'
|
|
|
import ODialog from '@/components/o-dialog'
|
|
|
-import { state } from '@/state'
|
|
|
+import { setLogin, state } from '@/state'
|
|
|
import OActionSheet from '@/components/o-action-sheet'
|
|
|
|
|
|
export default defineComponent({
|
|
@@ -152,7 +152,7 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- onMounted(() => {
|
|
|
+ onMounted(async () => {
|
|
|
const unitType = sessionStorage.getItem('unit-test-search-type')
|
|
|
const temp: any = [{ name: '全部测验', id: 'ALL', selected: true }]
|
|
|
let selectItem = {} as any
|
|
@@ -174,7 +174,14 @@ export default defineComponent({
|
|
|
form.params.status = selectItem.id
|
|
|
}
|
|
|
|
|
|
- getList()
|
|
|
+ try {
|
|
|
+ // 重新初始化用户信息
|
|
|
+ const userCash = await request.get(state.platformApi + '/user/getUserInfo')
|
|
|
+ setLogin(userCash.data)
|
|
|
+ } catch {
|
|
|
+ //
|
|
|
+ }
|
|
|
+ await getList()
|
|
|
})
|
|
|
return () => (
|
|
|
<div class={[styles.unitTest, !form.listState.dataShow && 'emptyRootContainer']}>
|