[Fix][UI Next] Fix build standalone error. (#8590)
This commit is contained in:
parent
ec4ce2b573
commit
f2c6fbb452
|
|
@ -15,4 +15,4 @@
|
|||
|
||||
NODE_ENV=production
|
||||
|
||||
VITE_APP_PROD_WEB_URL=''
|
||||
VITE_APP_PROD_WEB_URL='http://127.0.0.1:12345'
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ import NProgress from 'nprogress'
|
|||
import 'nprogress/nprogress.css'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHistory(
|
||||
import.meta.env.MODE === 'production' ? '/dolphinscheduler/ui/' : '/'
|
||||
),
|
||||
routes
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ export function useProcedure(model: { [field: string]: any }): IJsonItem[] {
|
|||
props: {
|
||||
language: 'sql',
|
||||
placeholder: t('project.node.procedure_method_tips'),
|
||||
defaultValue: model.method? model.method : t('project.node.procedure_method_snippet')
|
||||
defaultValue: model.method
|
||||
? model.method
|
||||
: t('project.node.procedure_method_snippet')
|
||||
},
|
||||
validate: {
|
||||
trigger: ['input', 'trigger'],
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import viteCompression from 'vite-plugin-compression'
|
|||
import path from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
base: process.env.NODE_ENV === 'production' ? './' : '/',
|
||||
base: process.env.NODE_ENV === 'production' ? '/dolphinscheduler/ui/' : '/',
|
||||
plugins: [
|
||||
vue(),
|
||||
vueJsx(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue