Bug1 远端公告:公告只在启动时拉取一次,且点铃铛不触发刷新。 - openCenter 时补调 refresh(),点铃铛即拉最新 - watch skinSiteStatus,登录皮肤站后自动重试拉取 Bug2 盔甲翻译:补 7 个缺失的 app.skins.armor.* i18n 键 (title/save/close/description/unsaved/reset-to-saved/restore-defaults), ui 包的 skin.preview.armor.* 46 个键已存在无需补。
This commit is contained in:
1 parent
99e0aa9d14
commit
afdd091971
3 files changed
+22
-3
No files matched your search
@@ -100,6 +100,7 @@ function emitState() {
|
||||
}
|
||||
function openCenter(item?: RemoteAnnouncement) {
|
||||
if (!props.ready || disposed) return
|
||||
void refresh()
|
||||
centerOpen.value = true
|
||||
if (item) {
|
||||
startupNotice.value = null
|
||||
@@ -302,6 +303,10 @@ onMounted(() => {
|
||||
setTimeout(start, 500)
|
||||
}
|
||||
})
|
||||
watch(skinSiteStatus, (status) => {
|
||||
if (disposed || props.previewOnly) return
|
||||
if (status === 'signed-in') void refresh()
|
||||
})
|
||||
watch([() => props.ready, hasModal], () => {
|
||||
if (advanceTimer) clearTimeout(advanceTimer)
|
||||
advanceTimer = setTimeout(advance, 350)
|
||||
|
||||
Reference in new issue
Block a user