| | |
| | | import ImagePreview from "@/components/ImagePreview"
|
| | | // 字典标签组件
|
| | | import DictTag from '@/components/DictTag'
|
| | | // 表格组件
|
| | | import PIMTable from "@/components/PIMTable/PIMTable.vue";
|
| | |
|
| | | import { getToken } from "@/utils/auth";
|
| | |
|
| | | const app = createApp(App)
|
| | |
|
| | |
| | | app.config.globalProperties.addDateRange = addDateRange
|
| | | app.config.globalProperties.selectDictLabel = selectDictLabel
|
| | | app.config.globalProperties.selectDictLabels = selectDictLabels
|
| | | app.config.globalProperties.javaApi = 'http://192.168.1.36:8080'
|
| | | app.config.globalProperties.HaveJson = (val) => {
|
| | | return JSON.parse(JSON.stringify(val));
|
| | | };
|
| | | app.config.globalProperties.uploadHeader = {
|
| | | Authorization: "Bearer " + getToken(),
|
| | | };
|
| | |
|
| | | // 全局组件挂载
|
| | | app.component('DictTag', DictTag)
|
| | |
| | | app.component('ImagePreview', ImagePreview)
|
| | | app.component('RightToolbar', RightToolbar)
|
| | | app.component('Editor', Editor)
|
| | | app.component('PIMTable', PIMTable)
|
| | |
|
| | | app.use(router)
|
| | | app.use(store)
|