20260427:大屏构建报错
This commit is contained in:
parent
559bc19e23
commit
59fe8be99b
@ -9,7 +9,7 @@
|
|||||||
"build": "vue-tsc --noEmit && vite build --mode production",
|
"build": "vue-tsc --noEmit && vite build --mode production",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"new": "plop --plopfile ./plop/plopfile.js",
|
"new": "plop --plopfile ./plop/plopfile.js",
|
||||||
"postinstall": "husky install",
|
"postinstall": "husky install || exit 0",
|
||||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.vue src",
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.vue src",
|
||||||
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.vue src --fix"
|
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.vue src --fix"
|
||||||
},
|
},
|
||||||
@ -52,7 +52,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^17.0.2",
|
"@commitlint/cli": "^17.0.2",
|
||||||
"@commitlint/config-conventional": "^17.0.2",
|
"@commitlint/config-conventional": "^17.0.2",
|
||||||
"@types/node": "^16.11.26",
|
"@types/node": "^18.19.0",
|
||||||
"@types/three": "^0.144.0",
|
"@types/three": "^0.144.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
||||||
"@typescript-eslint/parser": "^5.18.0",
|
"@typescript-eslint/parser": "^5.18.0",
|
||||||
@ -77,13 +77,13 @@
|
|||||||
"prettier": "^2.6.2",
|
"prettier": "^2.6.2",
|
||||||
"sass": "^1.49.11",
|
"sass": "^1.49.11",
|
||||||
"sass-loader": "^12.6.0",
|
"sass-loader": "^12.6.0",
|
||||||
"typescript": "4.6.3",
|
"typescript": "~5.3.3",
|
||||||
"vite": "4.3.6",
|
"vite": "4.3.6",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-plugin-importer": "^0.2.5",
|
"vite-plugin-importer": "^0.2.5",
|
||||||
"vite-plugin-mock": "^2.9.6",
|
"vite-plugin-mock": "^2.9.6",
|
||||||
"vite-plugin-monaco-editor": "^1.1.0",
|
"vite-plugin-monaco-editor": "^1.1.0",
|
||||||
"vue-echarts": "^6.0.2",
|
"vue-echarts": "^6.0.2",
|
||||||
"vue-tsc": "^0.28.10"
|
"vue-tsc": "^1.8.27"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,28 +12,30 @@
|
|||||||
|
|
||||||
<n-list-item>
|
<n-list-item>
|
||||||
<n-space class="go-my-2" :size="20">
|
<n-space class="go-my-2" :size="20">
|
||||||
<n-text class="item-left">版权声明:</n-text>
|
<n-text class="item-left">产品说明:</n-text>
|
||||||
<n-text>
|
<n-text>
|
||||||
fastbee-view 版权属于
|
FastBee 可视化大屏(fastbee-view)为岩安测控物联网平台配套的可视化设计器,在开源可视化技术栈基础上进行了二次开发与业务定制。
|
||||||
<n-a href="https://gitee.com/kerwincui/wumei-smart" target="_blank">https://gitee.com/kerwincui/wumei-smart</n-a> 项目作者
|
|
||||||
</n-text>
|
</n-text>
|
||||||
</n-space>
|
</n-space>
|
||||||
</n-list-item>
|
</n-list-item>
|
||||||
|
|
||||||
<n-list-item>
|
<n-list-item>
|
||||||
<n-space class="go-my-2" :size="20">
|
<n-space class="go-my-2" :size="20">
|
||||||
<n-text class="item-left">协议备注:</n-text>
|
<n-text class="item-left">开源致谢:</n-text>
|
||||||
<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-text>
|
||||||
</n-space>
|
</n-space>
|
||||||
</n-list-item>
|
</n-list-item>
|
||||||
|
|
||||||
<n-list-item>
|
<n-list-item>
|
||||||
<n-space class="go-mt-2" :size="20">
|
<n-space class="go-mt-2" :size="20">
|
||||||
<n-text class="item-left">商业授权:</n-text>
|
<n-text class="item-left">权利说明:</n-text>
|
||||||
<n-text>
|
<n-text depth="2">
|
||||||
若不想保留版权声明,请通过仓库/交流群 联系项目作者,进行授权
|
本项目中自行开发的界面、业务逻辑与配置等,知识产权归本项目维护方;上游开源部分的权利义务以原项目许可证及版权文件为准。
|
||||||
</n-text>
|
</n-text>
|
||||||
</n-space>
|
</n-space>
|
||||||
</n-list-item>
|
</n-list-item>
|
||||||
@ -50,7 +52,7 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelShow'])
|
const emit = defineEmits(['update:modelShow'])
|
||||||
const { HelpOutlineIcon, CloseIcon } = icon.ionicons5
|
const { CloseIcon } = icon.ionicons5
|
||||||
const modelShowRef = ref(false)
|
const modelShowRef = ref(false)
|
||||||
|
|
||||||
watch(() => props.modelShow, (newValue) => {
|
watch(() => props.modelShow, (newValue) => {
|
||||||
|
|||||||
@ -1,27 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="go-footer">
|
<div class="go-footer">
|
||||||
<slot>
|
<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-text depth="3">
|
||||||
<n-a italic href="https://beian.miit.gov.cn/" target="_blank">
|
<n-a italic href="https://beian.miit.gov.cn/" target="_blank">
|
||||||
滇ICP备20004376号
|
湘ICP备2023026509号-3
|
||||||
</n-a>
|
</n-a>
|
||||||
</n-text>
|
</n-text>
|
||||||
</n-space>
|
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
import { docPath } from '@/settings/pathConst'
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@include go(footer) {
|
@include go(footer) {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
import ProjectLayoutAsideFooter from './index.vue'
|
|
||||||
|
|
||||||
export { ProjectLayoutAsideFooter }
|
|
||||||
@ -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>
|
|
||||||
@ -24,10 +24,6 @@
|
|||||||
:default-expanded-keys="defaultExpandedKeys"
|
:default-expanded-keys="defaultExpandedKeys"
|
||||||
></n-menu>
|
></n-menu>
|
||||||
</aside>
|
</aside>
|
||||||
<!-- 底部提示 -->
|
|
||||||
<div class="sider-bottom">
|
|
||||||
<project-layout-aside-footer :collapsed="collapsed"></project-layout-aside-footer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</n-layout-sider>
|
</n-layout-sider>
|
||||||
</template>
|
</template>
|
||||||
@ -35,7 +31,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, onMounted, onUnmounted, toRefs } from 'vue'
|
import { ref, computed, onMounted, onUnmounted, toRefs } from 'vue'
|
||||||
import { ProjectLayoutCreate } from '../ProjectLayoutCreate/index'
|
import { ProjectLayoutCreate } from '../ProjectLayoutCreate/index'
|
||||||
import { ProjectLayoutAsideFooter } from '../ProjectLayoutAsideFooter/index'
|
|
||||||
import { asideWidth } from '@/settings/designSetting'
|
import { asideWidth } from '@/settings/designSetting'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
|
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
"allowJs": true,
|
||||||
"lib": ["es6", "ESNext", "dom"],
|
"lib": ["es6", "ESNext", "dom"],
|
||||||
"types": ["vite/client"],
|
"types": ["vite/client"],
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|||||||
@ -88,7 +88,7 @@ export default ({ mode }) => defineConfig({
|
|||||||
})
|
})
|
||||||
],
|
],
|
||||||
build: {
|
build: {
|
||||||
target: 'es2015',
|
target: 'es2020',
|
||||||
outDir: OUTPUT_DIR,
|
outDir: OUTPUT_DIR,
|
||||||
// minify: 'terser', // 如果需要用terser混淆,可打开这两行
|
// minify: 'terser', // 如果需要用terser混淆,可打开这两行
|
||||||
// terserOptions: terserOptions,
|
// terserOptions: terserOptions,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user