Browse Source

Packaging problem fix (#8059)

3.0.0/version-upgrade
labbomb 3 years ago committed by GitHub
parent
commit
805ad72e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui-next/package.json
  2. 1
      dolphinscheduler-ui-next/src/layouts/content/components/user/use-dropdown.ts
  3. 2
      dolphinscheduler-ui-next/src/views/resource/file/index.tsx
  4. 8
      dolphinscheduler-ui-next/vite.config.ts

4
dolphinscheduler-ui-next/package.json

@ -7,12 +7,12 @@
"build:prod": "vue-tsc --noEmit && vite build --mode production",
"preview": "vite preview",
"lint": "eslint src --fix --ext .ts,.tsx,.vue",
"prettier": "prettier --write src/**/*.{vue,ts,tsx}"
"prettier": "prettier --write \"src/**/*.{vue,ts,tsx}\""
},
"dependencies": {
"@vueuse/core": "^7.5.3",
"axios": "^0.24.0",
"date-fns": "^2.28.0",
"date-fns": "^2.27.0",
"echarts": "^5.2.2",
"lodash": "^4.17.21",
"monaco-editor": "^0.31.1",

1
dolphinscheduler-ui-next/src/layouts/content/components/user/use-dropdown.ts

@ -19,6 +19,7 @@ import { useRouter } from 'vue-router'
import { logout } from '@/service/modules/logout'
import { useUserStore } from '@/store/user/user'
import type { Router } from 'vue-router'
import { DropdownOption } from 'naive-ui'
export function useDropDown() {
const router: Router = useRouter()

2
dolphinscheduler-ui-next/src/views/resource/file/index.tsx

@ -53,7 +53,7 @@ export default defineComponent({
const router: Router = useRouter()
const fileId = ref(Number(router.currentRoute.value.params.id) || -1)
const reload = inject('reload')
const reload:any = inject('reload')
const resourceListRef = ref()
const folderShowRef = ref(false)
const uploadShowRef = ref(false)

8
dolphinscheduler-ui-next/vite.config.ts

@ -22,6 +22,7 @@ import viteCompression from 'vite-plugin-compression'
import path from 'path'
export default defineConfig({
base: process.env.NODE_ENV === 'production' ? './' : '/',
plugins: [
vue(),
vueJsx(),
@ -30,7 +31,8 @@ export default defineConfig({
disable: false,
threshold: 10240,
algorithm: 'gzip',
ext: '.gz'
ext: '.gz',
deleteOriginFile: false
})
],
build: {
@ -43,7 +45,9 @@ export default defineConfig({
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
'@': path.resolve(__dirname, 'src'),
// resolve vue-i18n warning: You are running the esm-bundler build of vue-i18n.
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js'
}
}
})

Loading…
Cancel
Save