diff --git a/change/@acedatacloud-nexior-748ba9b1-e4e1-4aaf-acfe-6df711d8009d.json b/change/@acedatacloud-nexior-748ba9b1-e4e1-4aaf-acfe-6df711d8009d.json
new file mode 100644
index 00000000..9565b83d
--- /dev/null
+++ b/change/@acedatacloud-nexior-748ba9b1-e4e1-4aaf-acfe-6df711d8009d.json
@@ -0,0 +1,7 @@
+{
+ "type": "minor",
+ "comment": "update application state",
+ "packageName": "@acedatacloud/nexior",
+ "email": "office@acedata.cloud",
+ "dependentChangeType": "patch"
+}
diff --git a/src/App.vue b/src/App.vue
index f22134de..7d7a8b62 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -29,6 +29,14 @@ export default defineComponent({
authPopup() {
return this.$store.state.auth.flow === 'popup' && this.$store.state.auth.visible;
}
+ },
+ mounted() {
+ const authenticated = !!this.$store.state.token.access && !!this.$store.state.user?.id;
+ console.debug('App mounted, authenticated:', authenticated);
+ if (!authenticated) {
+ this.$store.dispatch('logout');
+ this.$store.dispatch('login');
+ }
}
});
diff --git a/src/assets/scss/_common.scss b/src/assets/scss/_common.scss
index 0fc5c20c..19908a72 100644
--- a/src/assets/scss/_common.scss
+++ b/src/assets/scss/_common.scss
@@ -135,7 +135,7 @@ html.dark,
}
.el-dialog {
- border-radius: 15px;
+ border-radius: 20px;
.el-dialog__body {
color: var(--el-text-color-primary);
}
diff --git a/src/components/application/Info.vue b/src/components/application/Info.vue
index 2499fbe1..4fe119cc 100644
--- a/src/components/application/Info.vue
+++ b/src/components/application/Info.vue
@@ -1,32 +1,42 @@
-
-
- {{ $t('application.type.period') }}
-
- {{ $t('common.message.expiredAt') }}:
- {{ $dayjs.format(application.expired_at) }}
- ID: {{ application.id }}
-
-
-
- {{ $t('application.type.usage') }}
-
- {{ $t('common.message.remainingAmount') }}:
- {{ application?.remaining_amount?.toFixed(6) }}
- {{ $t(`service.unit.` + application?.service?.unit + 's') }}
- ID: {{ application.id }}
-
+
+ {{
+ application.service?.title
+ }}
+
+ {{ application.id }}
+
+
+
+
+ {{ $t('application.type.period') }}
+
+
+ {{ $t('application.type.usage') }}
+
+
+
+ {{ $dayjs.format(application.expired_at) }}
+
+
+ {{ application?.remaining_amount?.toFixed(6) }} {{ $t(`service.unit.` + application?.service?.unit + 's') }}
+
+