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:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user