Commit d33d9ec8 authored by hewenhao's avatar hewenhao

feat: 提现

parent 7d53f87b
......@@ -173,7 +173,7 @@ const Bonus = defineComponent({
// 都正常的状态
router.push({
name: 'withdraw',
params: {
query: {
withdrawableTotal: state.bonusAccount?.withdrawableTotal || 0,
withdrawAccount: state.bonusAccount?.withdrawAccount || '',
withdrawAccountId: state.bonusAccount?.withdrawAccountId || ''
......
......@@ -100,7 +100,7 @@ const Withdraw = defineComponent({
withdrawResponse: {},
studentDailyWithdrawLimit: 0 // 学生单日提现上限
})
const { withdrawableTotal, withdrawAccount, withdrawAccountId } = route.params
const { withdrawableTotal, withdrawAccount, withdrawAccountId } = route.query
state.withdrawableTotal = Number(withdrawableTotal)
state.withdrawAccount = withdrawAccount as string
state.withdrawAccountId = withdrawAccountId as string
......
......@@ -45,7 +45,7 @@ module.exports = defineConfig({
chainWebpack: config => {
config.plugin('html').tap(args => {
const minify = args[0].minify
args[0].minify = minify ? { ...minify, minifyJS: true } : minify
args[0].minify = { ...(minify || {}), minifyJS: true }
return args
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment