完善茶艺师接口对接
This commit is contained in:
@ -4,6 +4,7 @@ import App from './App.vue'
|
||||
import { requestInterceptor } from './http/interceptor'
|
||||
import { routeInterceptor } from './router/interceptor'
|
||||
import NavBar from '@/components/Navbar.vue'
|
||||
import useShare from '@/hooks/useShare'
|
||||
|
||||
import store from './store'
|
||||
import '@/style/index.scss'
|
||||
@ -11,7 +12,6 @@ import 'virtual:uno.css'
|
||||
|
||||
import { getNavBarHeight, getCapsuleOffset } from '@/utils/index'
|
||||
|
||||
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
/* 注册全局组件 */
|
||||
@ -20,11 +20,15 @@ export function createApp() {
|
||||
app.use(store)
|
||||
app.use(routeInterceptor)
|
||||
app.use(requestInterceptor)
|
||||
|
||||
app.use(VueQueryPlugin)
|
||||
app.provide('OSS', 'https://shchazhi.oss-cn-hangzhou.aliyuncs.com/fronted/')
|
||||
app.provide('navbarHeight', getNavBarHeight())
|
||||
app.provide('capsuleOffset', getCapsuleOffset())
|
||||
|
||||
|
||||
app.mixin(useShare())
|
||||
|
||||
return {
|
||||
app,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user