|
@@ -55,11 +55,13 @@
|
|
|
const scrollTop = ref(0)
|
|
|
const cardId = ref(null)
|
|
|
onShow(() => AuthCode.value = getUserIdentity()); // 用户身份
|
|
|
- onLoad(() => {
|
|
|
- if (cacheManager.get('auth')) {
|
|
|
- cardId.value = cacheManager.get('auth').cardId;
|
|
|
- }
|
|
|
- })
|
|
|
+ onLoad((options) => {
|
|
|
+ if (cacheManager.get('auth')) {
|
|
|
+ cardId.value = cacheManager.get('auth').cardId;
|
|
|
+ } else {
|
|
|
+ cardId.value = options.cardId;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
const $emit = defineEmits(['change-zhang'])
|
|
|
|