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);