FastMovieAI 二开基线 v1.0 (完整源码)

This commit is contained in:
李建琦
2026-08-26 18:41:02 +08:00
parent fad7690c0c
commit d54584f70d
888 changed files with 105571 additions and 1 deletions
@@ -0,0 +1,41 @@
import { ElMessageBox } from "element-plus"
import type { ElMessageBoxOptions } from "element-plus"
import { h } from "vue"
import XLInvitationCode from "@/components/xl-invitation-code/index.vue"
export const useInvitationCode = () => {
const open = () => {
const options: ElMessageBoxOptions = {
showClose: true,
showCancelButton: false,
showConfirmButton: false,
customStyle: {
'--el-messagebox-width': 'min(586px,100%)',
'--el-messagebox-border-radius': '20px',
'--el-messagebox-padding-primary': '30px',
'--el-color-primary':'var(--el-color-success)',
},
autofocus:false,
closeOnPressEscape: true,
closeOnClickModal: true,
title: '邀请好友',
message: () => h(XLInvitationCode),
}
ElMessageBox(options)
.then(() => {
console.log('打开邀请码成功')
})
.catch(() => {
console.log('打开邀请码失败')
})
}
const close = () => {
ElMessageBox.close()
}
return {
open,
close,
}
}