From 0a8646c656230d57e1073000840829683b124d6b Mon Sep 17 00:00:00 2001 From: berg <2433219116@qq.com> Date: Mon, 13 May 2024 16:34:24 +0800 Subject: [PATCH] Revert "fix: Add condition when terminusName is empty" --- packages/editor/src/App.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/editor/src/App.vue b/packages/editor/src/App.vue index b775530..06087e0 100644 --- a/packages/editor/src/App.vue +++ b/packages/editor/src/App.vue @@ -46,14 +46,8 @@ export default defineComponent({ userStore.setUser(response.data.data.profile); userStore.setInfo(response.data.data.info); - const appTerminusName = response.data.data.info.appTerminusName; - const terminusName = response.data.data.profile.terminusName; - let did = ''; - if (terminusName) { - did = terminusName; - } else { - did = appTerminusName.slice(0, appTerminusName.indexOf('@')); - } + const terminusName = response.data.data.info.terminusName; + const did = terminusName.slice(0, terminusName.indexOf('@')); document.title = `${did} | Terminus HomePage`; // initUserData(userStore.user);