unibest/src/main.ts
feige996 9bcb37cd4f refactor(unocss): 迁移至@uni-helper/unocss-preset-uni预设并优化配置
- 使用@uni-helper/unocss-preset-uni替代原有小程序预设配置
- 移除unocss-applet依赖及相关自定义规则
- 更新vite配置中UnoCSS的异步导入方式
- 添加fg-*组件自动导入规则
- 更新about页面导航栏标题
- 调整package.json依赖版本
```

这个提交消息:
1. 使用`refactor`类型,因为这是对CSS配置体系的重构
2. 添加`unocss`作用域明确修改范围
3. 简明描述主要变更内容
4. 使用中文符合要求
5. 通过条目列出重要修改点,避免重复描述
2025-05-26 22:20:14 +08:00

22 lines
505 B
TypeScript

import '@/style/index.scss'
import { VueQueryPlugin } from '@tanstack/vue-query'
import 'uno.css'
import { createSSRApp } from 'vue'
import App from './App.vue'
import { prototypeInterceptor, requestInterceptor, routeInterceptor } from './interceptors'
import store from './store'
export function createApp() {
const app = createSSRApp(App)
app.use(store)
app.use(routeInterceptor)
app.use(requestInterceptor)
app.use(prototypeInterceptor)
app.use(VueQueryPlugin)
return {
app,
}
}