diff --git a/frontend_nuxt/components/MenuComponent.vue b/frontend_nuxt/components/MenuComponent.vue
index 7ed99a2f7..7b52bae54 100644
--- a/frontend_nuxt/components/MenuComponent.vue
+++ b/frontend_nuxt/components/MenuComponent.vue
@@ -60,7 +60,7 @@
v-if="authState.loggedIn"
class="menu-item"
exact-active-class="selected"
- to="/about/points"
+ to="/points"
@click="handleItemClick"
>
diff --git a/frontend_nuxt/pages/about/points.vue b/frontend_nuxt/pages/about/points.vue
deleted file mode 100644
index 227226432..000000000
--- a/frontend_nuxt/pages/about/points.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
我的积分:{{ point }}
-
请先登录以查看积分
-
-
-
-
- 积分兑换商品
-
- - {{ good.name }} - {{ good.cost }} 积分
-
-
-
-
-
-
-
-
diff --git a/frontend_nuxt/pages/points.vue b/frontend_nuxt/pages/points.vue
new file mode 100644
index 000000000..08bc22f60
--- /dev/null
+++ b/frontend_nuxt/pages/points.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+ 我的积分:{{
+ point
+ }}
+
+
+
+
+
+
![good.name]()
+
{{ good.name }}
+
+
+ {{ good.cost }} 积分
+
+
兑换
+
+
+
+
+
+
+
+
diff --git a/frontend_nuxt/pages/signup-reason.vue b/frontend_nuxt/pages/signup-reason.vue
index 5b4813b11..f6c0d1c15 100644
--- a/frontend_nuxt/pages/signup-reason.vue
+++ b/frontend_nuxt/pages/signup-reason.vue
@@ -28,6 +28,7 @@ const reason = ref('')
const error = ref('')
const isWaitingForRegister = ref(false)
const token = ref('')
+const route = useRoute()
onMounted(async () => {
token.value = route.query.token || ''
@@ -50,8 +51,8 @@ const submit = async () => {
'Content-Type': 'application/json',
},
body: JSON.stringify({
- token: this.token,
- reason: this.reason,
+ token: token.value,
+ reason: reason.value,
}),
})
isWaitingForRegister.value = false