You've already forked template-MP-ts
Initial commit
This commit is contained in:
18
mixins/global.ts
Normal file
18
mixins/global.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// @ts-ignore
|
||||
const ASSETSURL = import.meta.env.VITE_ASSETSURL
|
||||
|
||||
export default {
|
||||
install(app: any) {
|
||||
app.mixin({
|
||||
data() {
|
||||
return {
|
||||
// 资源地址
|
||||
ASSETSURL,
|
||||
}
|
||||
},
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
methods: {},
|
||||
})
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user