路径和页面调整

This commit is contained in:
weiwei committed 2025-05-21 09:47:33 +08:00
1 parent 9b4614a5cc
commit c44b5b56d8
10 files changed
+192 -373

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ export const useCheckLogin = async (): Promise<boolean> => {
confirmText: "去登录",
success: async (res) => {
if (res.confirm) {
jump("/pages/test/login", {}, 3)
jump("/pages/user/login", {}, 3)
return
}
if (!res.confirm) {
-5
View File
@@ -1,8 +1,3 @@
// https://pinia.vuejs.org/
import { createPinia } from "pinia"
// 创建
const pinia = createPinia()
// 导出
export default pinia
+7 -1
View File
@@ -1,14 +1,20 @@
import { defineStore } from "pinia"
export const usePayStore = defineStore("pay", {
state: (): { payData: { id?: string; name?: string; customPrice?: number } } => {
state: (): { payData: { id?: string; name?: string; customPrice?: number }; sourceWalletData: any } => {
return {
payData: {},
sourceWalletData: {},
}
},
actions: {
// 支付
setPayData(data: any) {
this.payData = data
},
// 转账
setSourceWalletData(data: any) {
this.sourceWalletData = data
},
},
})