|
@@ -297,7 +297,7 @@ import {
|
|
|
getCurrentInstance,
|
|
|
ComponentInternalInstance,
|
|
|
toRefs,
|
|
|
- nextTick
|
|
|
+ nextTick, onActivated
|
|
|
} from 'vue'
|
|
|
import {useStore} from 'vuex'
|
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
@@ -718,6 +718,15 @@ export default defineComponent({
|
|
|
getMonthInfo()
|
|
|
}
|
|
|
})
|
|
|
+ onActivated(() => {
|
|
|
+ if (state.dateType === 'day' && state.dateValue.selectDay) {
|
|
|
+ getDayInfo()
|
|
|
+ } else if (state.dateType === 'week' && state.dateValue.selectWeek) {
|
|
|
+ getWeekInfo()
|
|
|
+ } else if (state.dateType === 'month' && state.dateValue.selectMonth) {
|
|
|
+ getMonthInfo()
|
|
|
+ }
|
|
|
+ })
|
|
|
onMounted(() => {
|
|
|
initDictionary()
|
|
|
initStatic()
|