pre.build.icegl 增加了 icegl官网预览的编译模式

This commit is contained in:
hawk86104 2025-02-13 18:54:28 +08:00
parent 689bc08481
commit acfa59080f
3 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,7 @@
"build": "fes build",
"pre.dev": "cross-env FES_ENV=predev fes dev",
"pre.build": "cross-env NODE_OPTIONS=--max-old-space-size=8088 FES_ENV=predev fes build",
"pre.build.icegl": "cross-env NODE_OPTIONS=--max-old-space-size=8088 FES_ENV=predev FES_APP_ONLINE_API=true fes build",
"both": "concurrently \"npm run dev\" \"npm run pre.dev\" ",
"plugin.marker": "node pluginMaker/index.js",
"analyze": "cross-env ANALYZE=1 fes build",

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2023-10-16 10:53:09
* @LastEditors: 地虎降天龙
* @LastEditTime: 2025-02-08 08:50:30
* @LastEditTime: 2025-02-13 18:42:56
*/
import { defineRuntimeConfig, useModel } from '@fesjs/fes'
import { FMenu } from '@fesjs/fes-design'
@ -33,7 +33,8 @@ export default defineRuntimeConfig({
action () {
const { signin, getMenu } = useModel('forPreview')
signin()
if (process.env.FES_APP_PLUGINS === 'true' && process.env.NODE_ENV === 'development') {
debugger
if ((process.env.FES_APP_PLUGINS === 'true' && process.env.NODE_ENV === 'development') || process.env.FES_APP_ONLINE_API) {
getMenu()
}
// return new Promise((resolve) => {

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2023-11-18 22:17:49
* @LastEditors: 地虎降天龙
* @LastEditTime: 2025-02-08 08:52:49
* @LastEditTime: 2025-02-13 18:49:25
-->
<template>
<div class="absolute menuSelf">
@ -179,7 +179,7 @@ const menuGoto = (value: any) => {
const tabListRef = ref([])
const pluginsConfig = ref({})
pluginsConfig.value = getPluginsConfig() as any
if (process.env.NODE_ENV === 'development') {
if (process.env.NODE_ENV === 'development' || process.env.FES_APP_ONLINE_API) {
getOnlinePluginConfig(pluginsConfig)
}
const goto = (value: string) => {