1 Star 0 Fork 428

zm520msj / ktg-mes-pad

forked from 心笑峰 / ktg-mes-pad 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.js 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
心笑峰 提交于 2022-08-21 19:15 . uview 修改
import App from './App'
import 'static/icons'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
import uView from '@/uview-ui';
Vue.use(uView);
//import {router,RouterMount} from '@/router/router.js' //路径换成自己的
//Vue.use(router)
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
// 全局方法挂载
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
import store from '@/store';
let vuexStore = require('@/store/$u.mixin.js');
Vue.mixin(vuexStore);
const app = new Vue({
store,
...App
})
import { replaceAll } from '@/common/common.js'
Vue.prototype.replaceAll = replaceAll
import httpInterceptor from '@/common/http.interceptor.js';
Vue.use(httpInterceptor, app);
import httpApi from '@/common/http.api.js';
Vue.use(httpApi, app);
//RouterMount(app,router,'#app');
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/msj520zm_admin/ktg-mes-pad.git
git@gitee.com:msj520zm_admin/ktg-mes-pad.git
msj520zm_admin
ktg-mes-pad
ktg-mes-pad
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891