| | |
| | | # 是否打开mock |
| | | VITE_USE_MOCK = false |
| | | VITE_USE_MOCK = true |
| | | |
| | | # 发布路径 |
| | | VITE_PUBLIC_PATH = / |
| | | |
| | | |
| | | # 跨域代理,您可以配置多个 ,请注意,没有换行符 |
| | | # VITE_PROXY = [["/jeecgboot","http://192.168.31.222:8080/jeecg-boot"],["/upload","http://192.168.31.222:3300/upload"]] |
| | | VITE_PROXY = [["/jeecgboot","http://8.145.61.64:8080/jeecg-boot"],["/upload","http://8.145.61.64:3300/upload"]] |
| | | # VITE_PROXY = [["/jeecgboot","http://172.19.0.1:8080/jeecg-boot"],["/upload","http://localhost:3300/upload"]] |
| | | # |
| | | VITE_PROXY = [["/jeecgboot","http://192.168.31.222:8080/jeecg-boot"],["/upload","http://192.168.31.222:3300/upload"]] |
| | | |
| | | #后台接口全路径地址(必填) |
| | | # VITE_GLOB_DOMAIN_URL=http://192.168.31.222:8080/jeecg-boot |
| | | VITE_GLOB_DOMAIN_URL=http://8.145.61.64:8080/jeecg-boot |
| | | # VITE_GLOB_DOMAIN_URL=http://172.19.0.1:8080/jeecg-boot |
| | | |
| | | |
| | | VITE_GLOB_DOMAIN_URL=http://192.168.31.222:8080/jeecg-boot |
| | | |
| | | #后台接口父地址(必填) |
| | | VITE_GLOB_API_URL=/jeecgboot |
| | |
| | | // support name |
| | | vueSetupExtend(), |
| | | // @ts-ignore |
| | | VitePluginCertificate({ |
| | | source: 'coding', |
| | | }), |
| | | // VitePluginCertificate({ |
| | | // source: 'coding', |
| | | // }), |
| | | ]; |
| | | |
| | | vitePlugins.push(UnoCSS({ presets: [presetUno(), presetTypography()] })); |
| | |
| | | */ |
| | | export const useRedo = (_router?: Router, otherQuery?: Recordable) => { |
| | | const { push, currentRoute } = _router || useRouter(); |
| | | const { query, params = {}, name, fullPath } = unref(currentRoute.value); |
| | | function redo(): Promise<boolean> { |
| | | return new Promise((resolve) => { |
| | | const route = unref(currentRoute.value); |
| | | if (!route) { |
| | | resolve(false); |
| | | return; |
| | | } |
| | | const { query, params = {}, name, fullPath } = route; |
| | | if (name === REDIRECT_NAME) { |
| | | resolve(false); |
| | | return; |
| | |
| | | setupProps(props); |
| | | |
| | | // 多语言配置,异步情况:语言文件可以从服务器端获得 |
| | | await setupI18n(app); |
| | | try { |
| | | await setupI18n(app); |
| | | console.log('i18n setup success'); |
| | | } catch (error) { |
| | | console.error('i18n setup error:', error); |
| | | } |
| | | |
| | | // 初始化内部系统配置 |
| | | initAppConfigStore(); |
| | |
| | | {{ record.status_dictText || '--' }} |
| | | </template> |
| | | <template v-else-if="column.dataIndex === 'semanticWord.remark'"> |
| | | {{ record.semanticWord.remark || '--' }} |
| | | <!-- 修复:使用可选链操作符?.访问record.semanticWord.remark |
| | | 原因:当record.semanticWord为null或undefined时,直接访问其属性会导致错误 |
| | | 修复前:{{ record.semanticWord.remark || '--' }} |
| | | 修复后:{{ record.semanticWord?.remark || '--' }} |
| | | 效果:即使record.semanticWord为null或undefined,也不会出现错误,而是显示'--' --> |
| | | {{ record.semanticWord?.remark || '--' }} |
| | | </template> |
| | | <template v-else-if="column.dataIndex === 'semanticWord.ranking'"> |
| | | {{ record.semanticWord?.ranking || '--' }} |