From 7a22dcb8e38b7e14d555132537567bde43dad212 Mon Sep 17 00:00:00 2001 From: gengxin Date: Thu, 13 Feb 2025 15:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E9=83=A8=E8=AE=B2=E5=B8=88=EF=BC=9A?= =?UTF-8?q?=20=20-=20=E6=9F=A5=E7=9C=8B=E8=AE=B2=E5=B8=88=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=B8=8B=E8=BD=BD=E2=80=9C=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E8=B5=84=E6=96=99=E2=80=9D=EF=BC=8C=E6=8A=A5=E9=94=99=20upload?= =?UTF-8?q?=20=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 21 ++++++++----------- src/components/project/LookInsideLecturer.vue | 12 ++++++++--- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index e500dfe5..b73ffc61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3727,8 +3727,6 @@ "resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.12.0.tgz", "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", "dev": true, - "optional": true, - "peer": true, "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -3740,9 +3738,7 @@ "version": "1.0.0", "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "optional": true, - "peer": true + "dev": true }, "node_modules/ajv-keywords": { "version": "3.5.2", @@ -14457,6 +14453,7 @@ "integrity": "sha512-yl+5qhpjd8e1G4cMXfORkkBlvtPCIgmRf3IYCWYDKIQ7m+PPa5iTm4feiNmCMD6yGqQWMhhK/7M3oWGL9boKwg==", "dev": true, "requires": { + "@babel/core": "^7.12.16", "@babel/helper-compilation-targets": "^7.12.16", "@babel/helper-module-imports": "^7.12.13", "@babel/plugin-proposal-class-properties": "^7.12.13", @@ -14469,6 +14466,7 @@ "@vue/babel-plugin-jsx": "^1.0.3", "@vue/babel-preset-jsx": "^1.1.2", "babel-plugin-dynamic-import-node": "^2.3.3", + "core-js": "^3.8.3", "core-js-compat": "^3.8.3", "semver": "^7.3.4" }, @@ -15334,14 +15332,15 @@ "resolved": "https://registry.npmmirror.com/ajv-formats/-/ajv-formats-2.1.1.tgz", "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "dev": true, - "requires": {}, + "requires": { + "ajv": "^8.0.0" + }, "dependencies": { "ajv": { - "version": "https://registry.npmmirror.com/ajv/-/ajv-8.12.0.tgz", + "version": "8.12.0", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.12.0.tgz", "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", "dev": true, - "optional": true, - "peer": true, "requires": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -15353,9 +15352,7 @@ "version": "1.0.0", "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "optional": true, - "peer": true + "dev": true } } }, diff --git a/src/components/project/LookInsideLecturer.vue b/src/components/project/LookInsideLecturer.vue index 01c88289..d849bc5b 100644 --- a/src/components/project/LookInsideLecturer.vue +++ b/src/components/project/LookInsideLecturer.vue @@ -437,9 +437,15 @@ export default { // } // getSysTypeMap() const handleup = () => { - window.open( - `${process.env.VUE_APP_BOE_API_URL}/upload${state.formParam.certification}` - ); + let url = ""; + if(state.formParam.certification != null && state.formParam.certification != undefined && state.formParam.certification != ''){ + if(state.formParam.certification.startWith("/upload")){ + url = `${process.env.VUE_APP_BOE_API_URL}${state.formParam.certification}` + }else{ + url = `${process.env.VUE_APP_BOE_API_URL}/upload${state.formParam.certification}` + } + } + window.open(url); } return { ...toRefs(state),