feat: 提交任务、按F5刷新时会读取最新的余额

This commit is contained in:
yys 2026-04-13 10:34:09 +08:00
parent 4d428b9d94
commit dda43f2de6
2 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,7 @@ import { constantRoutes } from '@/router/index.js'
import Login from './Login.vue'
import { LOCALE_NAMES } from '@/lang/i18n'
import User from './User.vue'
import { getToken } from '@/utils/auth'
export default {
name: 'nav-bar',
@ -182,6 +183,9 @@ export default {
this.openLogin()
}
this.getLogo()
if (getToken()) {
this.$store.dispatch('user/getInfo').catch(() => {})
}
},
methods: {
openLogin() {

View File

@ -1150,6 +1150,7 @@ export default {
this.videoId = res.data.id
this.showResult = true
this.$refs.videoComposeRef?.clearPromptOnly?.()
this.$store.dispatch('user/getInfo').catch(() => {})
this.getVideo(res.data.id)
this.refreshChatFirstPage()
} else if (res.code == -1) {