consumer模块完成90%,前端完成supabase对接

This commit is contained in:
2026-02-04 17:21:15 +08:00
parent 8a535e3f38
commit 39aa1b6bec
1335 changed files with 191376 additions and 4 deletions

18
mall/main.uts Normal file
View File

@@ -0,0 +1,18 @@
// 简化的main.uts移除i18n依赖
import { createSSRApp } from 'vue'
import App from './App.uvue'
export function createApp() {
const app = createSSRApp(App)
// 注册 i18n 全局属性,使组件可以使用 $t 方法
app.config.globalProperties.$t = (key: string, values?: any, locale?: string): string => {
if (!i18n.global) {
console.error('i18n is not initialized')
return key
}
return i18n.global.t(key, values, locale) || key
}
return { app }
}