fix: fix build:test error
This commit is contained in:
parent
1b14680d73
commit
14530cf790
|
@ -18,3 +18,6 @@ VITE_SOURCEMAP = true
|
|||
|
||||
# 输出路径
|
||||
VITE_OUT_DIR=dist-test
|
||||
|
||||
# 标题
|
||||
VITE_APP_TITLE=ElementAdmin
|
||||
|
|
|
@ -10,7 +10,7 @@ Object.keys(modules).forEach(async (key) => {
|
|||
if (key.includes('_')) {
|
||||
return
|
||||
}
|
||||
mockModules.push(...(modules[key] as any).default)
|
||||
mockModules.push(...(modules[key] as any))
|
||||
})
|
||||
|
||||
export function setupProdMockServer() {
|
||||
|
|
|
@ -30,6 +30,7 @@ export const humpToUnderline = (str: string): string => {
|
|||
* @returns 字符串驼峰
|
||||
*/
|
||||
export const underlineToHump = (str: string): string => {
|
||||
if (!str) return ''
|
||||
return str.replace(/\-(\w)/g, (_, letter: string) => {
|
||||
return letter.toUpperCase()
|
||||
})
|
||||
|
|
|
@ -34,7 +34,10 @@ const schema = reactive<FormSchema[]>([
|
|||
label: 'option2',
|
||||
value: '2'
|
||||
}
|
||||
]
|
||||
],
|
||||
onChange: (value: string) => {
|
||||
console.log(value)
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ const { getPrefixCls } = useDesign()
|
|||
const prefixCls = getPrefixCls('login')
|
||||
|
||||
const appStore = useAppStore()
|
||||
console.log(appStore)
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
|
|
Loading…
Reference in New Issue