From 776dbb5c69cc7201bcbc4d63cf3f614ac38a7002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?= =?UTF-8?q?=E7=A8=80?= <2675540038@qq.com> Date: Tue, 15 Apr 2025 16:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B7=B3=E8=BD=AC=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- src/views/paper/article/index.vue | 8 ++++++-- src/views/paper/article/update.vue | 10 +++++++--- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.env.development b/.env.development index 27bb893..e4c7c7c 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_LOGIN_TITLE = '今日固始电子版 管理平台' VITE_LOGIN_EN_TITLE = 'GuShi Platform' VITE_WEB_BASE_API = '/api' # 本地Mock地址 -VITE_SERVER = 'http://democs.gushitv.com/' +VITE_SERVER = 'https://democs.gushitv.com/' # 路由模式[哈希模式 AND WEB模式 [hash | history, 这两个模式是固定死的,不能乱改值] VITE_ROUTER_MODE = hash # 是否使用全部去除console和debugger diff --git a/.env.production b/.env.production index 2e13bd6..ce77283 100644 --- a/.env.production +++ b/.env.production @@ -6,7 +6,7 @@ VITE_LOGIN_TITLE = '今日固始电子版 管理平台' VITE_LOGIN_EN_TITLE = 'GuShi Platform' VITE_WEB_BASE_API = '' # 后端接口地址 -VITE_SERVER = 'http://democs.gushitv.com/' +VITE_SERVER = 'https://democs.gushitv.com/' # 路由模式[哈希模式 AND WEB模式 [hash | history, 这两个模式是固定死的,不能乱改值] VITE_ROUTER_MODE = hash # 是否使用全部去除console和debugger diff --git a/src/views/paper/article/index.vue b/src/views/paper/article/index.vue index 00ac367..8bfd8af 100644 --- a/src/views/paper/article/index.vue +++ b/src/views/paper/article/index.vue @@ -34,8 +34,11 @@ 重新选择 - - + + + + + @@ -74,6 +77,7 @@ const form = reactive({ content: '', coordinate_show: '', video: '', + jump_link:'', }); /*新闻坐标*/ const coordinate = ref(); diff --git a/src/views/paper/article/update.vue b/src/views/paper/article/update.vue index bfe6594..6affb44 100644 --- a/src/views/paper/article/update.vue +++ b/src/views/paper/article/update.vue @@ -33,8 +33,11 @@ 重新选择 - - + + + + + @@ -73,6 +76,7 @@ const form = reactive({ reporter: '', content: '', video: '', + jump_link:'', }); /*新闻坐标 真实的*/ const coordinate = ref(); @@ -83,7 +87,6 @@ const bmInfoData = ref({}); const route = useRoute(); // 创建 route 对象 const id = ref(); onMounted(() => { - id.value = route.params.id; getNewsInfo(); }) @@ -100,6 +103,7 @@ const getNewsInfo = async () => { form.coordinate = res.data.coordinate; form.coordinate_show=res.data.coordinate_show; form.video = res.data.video; + form.jump_link = res.data.jump_link; coordinate.value = res.data.coordinate; coordinateShow.value = res.data.coordinate_show; await getBmInfo(res.data.bm_id);