20260427:大屏构建报错

This commit is contained in:
George 2026-04-27 20:16:07 +08:00
parent 559bc19e23
commit 59fe8be99b
8 changed files with 23 additions and 117 deletions

View File

@ -9,7 +9,7 @@
"build": "vue-tsc --noEmit && vite build --mode production",
"preview": "vite preview",
"new": "plop --plopfile ./plop/plopfile.js",
"postinstall": "husky install",
"postinstall": "husky install || exit 0",
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.vue src",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.vue src --fix"
},
@ -52,7 +52,7 @@
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@types/node": "^16.11.26",
"@types/node": "^18.19.0",
"@types/three": "^0.144.0",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
@ -77,13 +77,13 @@
"prettier": "^2.6.2",
"sass": "^1.49.11",
"sass-loader": "^12.6.0",
"typescript": "4.6.3",
"typescript": "~5.3.3",
"vite": "4.3.6",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-importer": "^0.2.5",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-monaco-editor": "^1.1.0",
"vue-echarts": "^6.0.2",
"vue-tsc": "^0.28.10"
"vue-tsc": "^1.8.27"
}
}

View File

@ -12,28 +12,30 @@
<n-list-item>
<n-space class="go-my-2" :size="20">
<n-text class="item-left">版权声明:</n-text>
<n-text class="item-left">产品说明:</n-text>
<n-text>
fastbee-view 版权属于
<n-a href="https://gitee.com/kerwincui/wumei-smart" target="_blank">https://gitee.com/kerwincui/wumei-smart</n-a> 项目作者
FastBee 可视化大屏(fastbee-view)为岩安测控物联网平台配套的可视化设计器,在开源可视化技术栈基础上进行了二次开发与业务定制。
</n-text>
</n-space>
</n-list-item>
<n-list-item>
<n-space class="go-my-2" :size="20">
<n-text class="item-left">协议备注:</n-text>
<n-text class="item-left">开源致谢:</n-text>
<n-text>
请遵守开源 MIT 协议,以上声明 <n-text type="error">不可删除</n-text>,否则视作侵权行为,后果自负!
本产品包含依照
<n-text depth="2"> MIT </n-text>
协议授权的上游开源代码。再分发或修改时,请遵守 MIT 要求(保留许可证与原有版权声明等)。参考仓库:
<n-a href="https://gitee.com/kerwincui/wumei-smart" target="_blank" rel="noopener noreferrer">wumei-smart</n-a>
</n-text>
</n-space>
</n-list-item>
<n-list-item>
<n-space class="go-mt-2" :size="20">
<n-text class="item-left">商业授权:</n-text>
<n-text>
若不想保留版权声明,请通过仓库/交流群 联系项目作者,进行授权
<n-space class="go-mt-2" :size="20">
<n-text class="item-left">权利说明:</n-text>
<n-text depth="2">
本项目中自行开发的界面、业务逻辑与配置等,知识产权归本项目维护方;上游开源部分的权利义务以原项目许可证及版权文件为准。
</n-text>
</n-space>
</n-list-item>
@ -50,7 +52,7 @@ const props = defineProps({
})
const emit = defineEmits(['update:modelShow'])
const { HelpOutlineIcon, CloseIcon } = icon.ionicons5
const { CloseIcon } = icon.ionicons5
const modelShowRef = ref(false)
watch(() => props.modelShow, (newValue) => {

View File

@ -1,27 +1,15 @@
<template>
<div class="go-footer">
<slot>
<n-space :size="50">
<n-text depth="2">
<n-a>{{ $t('global.doc_addr') }}: </n-a>
<n-a italic :href="docPath" target="_blank">
{{ docPath }}
</n-a>
</n-text>
<n-text depth="3">
<n-a italic href="https://beian.miit.gov.cn/" target="_blank">
滇ICP备20004376号
</n-a>
</n-text>
</n-space>
<n-text depth="3">
<n-a italic href="https://beian.miit.gov.cn/" target="_blank">
湘ICP备2023026509号-3
</n-a>
</n-text>
</slot>
</div>
</template>
<script setup lang="ts">
import { docPath } from '@/settings/pathConst'
</script>
<style lang="scss" scoped>
@include go(footer) {
display: flex;

View File

@ -1,3 +0,0 @@
import ProjectLayoutAsideFooter from './index.vue'
export { ProjectLayoutAsideFooter }

View File

@ -1,77 +0,0 @@
<template>
<div class="go-aside-footer">
<n-divider class="go-mt-0"></n-divider>
<n-space justify="space-around">
<n-tooltip v-if="collapsed" placement="right" trigger="hover">
<template #trigger>
<n-button secondary @click="handleDoc">
<template #icon>
<n-icon size="18">
<document-text-icon></document-text-icon>
</n-icon>
</template>
</n-button>
</template>
<n-text>
{{ $t('global.doc') }}
</n-text>
</n-tooltip>
<n-button v-else secondary @click="handleDoc">
<template #icon>
<n-icon size="18">
<document-text-icon></document-text-icon>
</n-icon>
</template>
<n-text>{{ $t('global.doc') }}</n-text>
</n-button>
<n-tooltip v-if="collapsed" placement="right" trigger="hover">
<template #trigger>
<n-button secondary @click="handleDoc">
<template #icon>
<n-icon size="18">
<code-slash-icon></code-slash-icon>
</n-icon>
</template>
</n-button>
</template>
<n-text>
{{ $t('global.code_addr') }}
</n-text>
</n-tooltip>
<n-button v-else secondary @click="handleCode">
<template #icon>
<n-icon size="18">
<code-slash-icon></code-slash-icon>
</n-icon>
</template>
<n-text v-show="!collapsed">{{ $t('global.code_addr') }}</n-text>
</n-button>
</n-space>
</div>
</template>
<script setup lang="ts">
import { openDoc, openGiteeSourceCode } from '@/utils'
import { icon } from '@/plugins'
const { DocumentTextIcon, CodeSlashIcon } = icon.ionicons5
const props = defineProps({
collapsed: Boolean
})
const handleDoc = () => {
openDoc()
}
const handleCode = () => {
openGiteeSourceCode()
}
</script>
<style lang="scss" scoped>
@include go('aside-footer') {
padding-bottom: 20px;
}
</style>

View File

@ -24,10 +24,6 @@
:default-expanded-keys="defaultExpandedKeys"
></n-menu>
</aside>
<!-- 底部提示 -->
<div class="sider-bottom">
<project-layout-aside-footer :collapsed="collapsed"></project-layout-aside-footer>
</div>
</div>
</n-layout-sider>
</template>
@ -35,7 +31,6 @@
<script setup lang="ts">
import { ref, computed, onMounted, onUnmounted, toRefs } from 'vue'
import { ProjectLayoutCreate } from '../ProjectLayoutCreate/index'
import { ProjectLayoutAsideFooter } from '../ProjectLayoutAsideFooter/index'
import { asideWidth } from '@/settings/designSetting'
import { useRoute } from 'vue-router'
import { useSettingStore } from '@/store/modules/settingStore/settingStore'

View File

@ -10,6 +10,7 @@
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"allowJs": true,
"lib": ["es6", "ESNext", "dom"],
"types": ["vite/client"],
"paths": {

View File

@ -88,7 +88,7 @@ export default ({ mode }) => defineConfig({
})
],
build: {
target: 'es2015',
target: 'es2020',
outDir: OUTPUT_DIR,
// minify: 'terser', // 如果需要用terser混淆,可打开这两行
// terserOptions: terserOptions,