提交 ef887833 authored 作者: 张伊明's avatar 张伊明

合并分支 'zym-dev' 到 'pre'

Zym dev 查看合并请求 !249
流水线 #122 已通过 于阶段
in 1 分 22 秒
...@@ -24,7 +24,7 @@ build_pre: ...@@ -24,7 +24,7 @@ build_pre:
- du -sh "$CI_PROJECT_DIR/.npm" "$CI_PROJECT_DIR/.npm/_cacache" 2>/dev/null || true - du -sh "$CI_PROJECT_DIR/.npm" "$CI_PROJECT_DIR/.npm/_cacache" 2>/dev/null || true
- echo "=== npm ci start ===" - echo "=== npm ci start ==="
- date -Iseconds - date -Iseconds
- npm ci --cache "$CI_PROJECT_DIR/.npm" --no-audit --no-fund --loglevel=verbose --timing --foreground-scripts - npm ci --cache "$CI_PROJECT_DIR/.npm" --no-audit --no-fund --include=optional --loglevel=verbose --timing --foreground-scripts
- echo "=== npm ci end ===" - echo "=== npm ci end ==="
- date -Iseconds - date -Iseconds
- npm run build - npm run build
...@@ -91,7 +91,7 @@ build_check: ...@@ -91,7 +91,7 @@ build_check:
- du -sh "$CI_PROJECT_DIR/.npm" "$CI_PROJECT_DIR/.npm/_cacache" 2>/dev/null || true - du -sh "$CI_PROJECT_DIR/.npm" "$CI_PROJECT_DIR/.npm/_cacache" 2>/dev/null || true
- echo "=== npm ci start ===" - echo "=== npm ci start ==="
- date -Iseconds - date -Iseconds
- npm ci --cache "$CI_PROJECT_DIR/.npm" --no-audit --no-fund --loglevel=verbose --timing --foreground-scripts - npm ci --cache "$CI_PROJECT_DIR/.npm" --no-audit --no-fund --include=optional --loglevel=verbose --timing --foreground-scripts
- echo "=== npm ci end ===" - echo "=== npm ci end ==="
- date -Iseconds - date -Iseconds
- npm run build - npm run build
\ No newline at end of file
差异被折叠。
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
"json5": "^2.2.3", "json5": "^2.2.3",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"markdown-it": "^14.1.0", "markdown-it": "^14.1.0",
"pdfjs-dist": "^3.11.174", "pdfjs-dist": "^5.5.207",
"pinia": "^3.0.4", "pinia": "^3.0.4",
"vue": "^3.4.0", "vue": "^3.4.0",
"vue-router": "^4.2.5" "vue-router": "^4.2.5"
......
...@@ -196,10 +196,10 @@ const setActivePanelId = id => { ...@@ -196,10 +196,10 @@ const setActivePanelId = id => {
background-image: url("../../assets/images/activeDown.png"); background-image: url("../../assets/images/activeDown.png");
} }
.iconUp { .iconUp {
background-image: url("../../assets/images/UnActiveUp.png"); background-image: url("../../assets/images/unActiveUp.png");
} }
.iconDown { .iconDown {
background-image: url("../../assets/images/UnActiveDown.png"); background-image: url("../../assets/images/unActiveDown.png");
} }
} }
.activeItem { .activeItem {
......
...@@ -2033,13 +2033,13 @@ onMounted(async () => { ...@@ -2033,13 +2033,13 @@ onMounted(async () => {
.up { .up {
width: 32px; width: 32px;
height: 32px; height: 32px;
background-image: url("src/views/innovationSubject/assets/images/icon-up.png"); background-image: url("./assets/images/icon-up.png");
} }
.down { .down {
width: 32px; width: 32px;
height: 32px; height: 32px;
background-image: url("src/views/innovationSubject/assets/images/icon-down.png"); background-image: url("./assets/images/icon-down.png");
} }
} }
......
...@@ -12,9 +12,8 @@ ...@@ -12,9 +12,8 @@
<script> <script>
import { ref, shallowRef, nextTick, watch } from 'vue'; import { ref, shallowRef, nextTick, watch } from 'vue';
// 使用 legacy 入口,避免线上对 .mjs 的 MIME 配置导致 worker 动态 import 失败 import * as pdfjsLib from 'pdfjs-dist/build/pdf.mjs';
import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf'; import pdfWorkerUrl from 'pdfjs-dist/build/pdf.worker.min.mjs?url';
import pdfWorkerUrl from 'pdfjs-dist/legacy/build/pdf.worker.min?url';
// 通过 Vite 的 ?url 产出静态资源地址,确保线上/线下都能正确加载 worker // 通过 Vite 的 ?url 产出静态资源地址,确保线上/线下都能正确加载 worker
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfWorkerUrl; pdfjsLib.GlobalWorkerOptions.workerSrc = pdfWorkerUrl;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论