feat: 初始化AI应用项目结构并添加基础功能

添加项目基础文件结构包括静态资源、配置文件、页面组件和工具函数
实现web-view通信功能,支持配置传递和消息处理
添加安全区域高度计算工具和全局样式配置
This commit is contained in:
超级老白兔
2025-08-29 15:48:59 +08:00
parent db4bc8651d
commit a5dcb64a10
14 changed files with 846 additions and 0 deletions

22
aiApp/main.js Normal file
View File

@@ -0,0 +1,22 @@
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif