You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
533 B
36 lines
533 B
|
|
import App from './App' |
|
import fui from './common/fui-app' |
|
import store from './store/index' |
|
|
|
// import './permission' |
|
|
|
// #ifndef VUE3 |
|
import Vue from 'vue' |
|
|
|
Vue.config.productionTip = false |
|
Vue.prototype.$store = store |
|
Vue.prototype.fui = fui |
|
|
|
App.mpType = 'app' |
|
|
|
const app = new Vue({ |
|
store, |
|
...App |
|
}) |
|
app.$mount() |
|
// #endif |
|
|
|
// #ifdef VUE3 |
|
import { |
|
createSSRApp |
|
} from 'vue' |
|
export function createApp() { |
|
const app = createSSRApp(App) |
|
app.use(store) |
|
app.config.globalProperties.fui = fui; |
|
return { |
|
app |
|
} |
|
} |
|
// #endif
|
|
|