feat: base 注册xtUpload组件
This commit is contained in:
parent
f68b32486d
commit
71dca19db3
2
main.js
2
main.js
|
|
@ -26,6 +26,7 @@ import api from './utils/api'
|
||||||
import check from './utils/check'
|
import check from './utils/check'
|
||||||
import config from './utils/config.js'
|
import config from './utils/config.js'
|
||||||
import { authDirective } from '@/utils/directives.js'
|
import { authDirective } from '@/utils/directives.js'
|
||||||
|
import xtUpload from "@/components/xtUpload.vue"
|
||||||
|
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
const app = createSSRApp(App)
|
const app = createSSRApp(App)
|
||||||
|
|
@ -35,6 +36,7 @@ export function createApp() {
|
||||||
app.config.globalProperties.$api = api
|
app.config.globalProperties.$api = api
|
||||||
app.config.globalProperties.$check = check
|
app.config.globalProperties.$check = check
|
||||||
app.config.globalProperties.$config = config
|
app.config.globalProperties.$config = config
|
||||||
|
app.component('xtUpload', xtUpload);
|
||||||
return {
|
return {
|
||||||
app
|
app
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue