Browse Source

edit

ctt_dev
chutingting 1 year ago
parent
commit
8141254955
2 changed files with 9 additions and 6 deletions
  1. +0
    -6
      src/types/auto-imports.d.ts
  2. +9
    -0
      src/views/createVideo/index.vue

+ 0
- 6
src/types/auto-imports.d.ts View File

@@ -2,9 +2,6 @@
export {} export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElForm: typeof import('element-plus/es')['ElForm']
const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
@@ -271,9 +268,6 @@ import { UnwrapRef } from 'vue'
declare module 'vue' { declare module 'vue' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']> readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly ElForm: UnwrapRef<typeof import('element-plus/es')['ElForm']>
readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']> readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']> readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
readonly computed: UnwrapRef<typeof import('vue')['computed']> readonly computed: UnwrapRef<typeof import('vue')['computed']>


+ 9
- 0
src/views/createVideo/index.vue View File

@@ -1654,12 +1654,21 @@ async function createVideo() {
// 去充值 // 去充值
if (res2.code === 64001) { if (res2.code === 64001) {
// router.push("/myStore"); // router.push("/myStore");
ElMessageBox.confirm(
'当前金币不足,是否去充值?',
'提示', {
confirmButtonText: 'OK',
cancelButtonText: 'Cancel',
type: 'warning',
}
).then(() => {
router.push({ router.push({
path: "/myStore", path: "/myStore",
query: { query: {
tag: 'createVideo' tag: 'createVideo'
}, },
}); });
}).catch(() => {})
return return
} }
ElMessage.success( ElMessage.success(


Loading…
Cancel
Save