| | |
| | | app.component(key, component) |
| | | } |
| | | |
| | | // import('vconsole').then((module) => { |
| | | // new module.default() |
| | | // }) |
| | | // ?qxydebug2=true 触发 |
| | | const urlParams = new URLSearchParams(window.location.search); |
| | | if (urlParams.get('qxydebug2') === 'true') { |
| | | import('vconsole').then((module) => { |
| | | new module.default(); |
| | | }); |
| | | } |
| | | |
| | | app.config.globalProperties.$rules = ruleGenerator |
| | | app.config.globalProperties.$property = property |
| | |
| | | |
| | | app.use(ElementPlus, { |
| | | locale: zhCn, |
| | | |
| | | }) |
| | | const pinia = createPinia() |
| | | pinia.use(piniaPluginPersistedstate) |