fix: admin page reactive import + member payment toast show real error

1. admin.vue: 添加缺失的reactive导入,修复管理后台只显示标题不显示功能的问题

2. member.vue: 支付失败toast改为显示后端真实错误信息,而非硬编码'创建订单失败'

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
yuzhiran
2026-06-18 20:39:49 +08:00
parent e0de29fdd0
commit c58bb27575
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -393,7 +393,7 @@
</template> </template>
<script setup> <script setup>
import { ref, computed, onMounted } from 'vue' import { ref, computed, onMounted, reactive } from 'vue'
import { api, API_ENDPOINTS } from '../../config' import { api, API_ENDPOINTS } from '../../config'
const verified = ref(false) const verified = ref(false)
+3 -2
View File
@@ -205,8 +205,9 @@ const startPay = async (selectedPlan) => {
}) })
} else { } else {
payLoading.value = false payLoading.value = false
payError.value = res.data?.message || '创建订单失败' const errMsg = res.data?.message || '创建订单失败'
uni.showToast({ title: '创建订单失败', icon: 'none' }) payError.value = errMsg
uni.showToast({ title: errMsg, icon: 'none' })
} }
} catch (e) { } catch (e) {
payLoading.value = false payLoading.value = false