From f5f57d7a9e9cdac5635e67b9cc8e873d180ed933 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Thu, 16 May 2024 09:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/update.js | 7 +++++++ src/request/config.js | 6 ++++-- src/views/update/index.vue | 16 ++++++++++++++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/apis/update.js b/src/apis/update.js index a48707a..2be5ded 100644 --- a/src/apis/update.js +++ b/src/apis/update.js @@ -68,6 +68,13 @@ export const get_update_alter = () => { }) } +export const write_git_version_to_db = () => { + return request({ + url: `/update/test/write_git_version_to_db/`, + method: 'get', + }) +} + export const handle_update = (params) => { return request({ url: '/update/update_cine/', diff --git a/src/request/config.js b/src/request/config.js index 0302e32..f40887d 100644 --- a/src/request/config.js +++ b/src/request/config.js @@ -1,8 +1,10 @@ export default { // method: 'get', - baseURL: 'http://172.16.1.63:8000', + baseURL: 'http://172.16.1.221:8000', + // baseURL: 'http://172.16.1.114:8000', // baseURL: 'http://127.0.0.1:8000', - baseWS: 'ws://172.16.1.63:8000', + baseWS: 'ws://172.16.1.221:8000', + // baseWS: 'ws://172.16.1.114:8000', // baseWS: 'ws://127.0.0.1:8000', headers: { 'Content-Type': 'application/json;charset=UTF-8', diff --git a/src/views/update/index.vue b/src/views/update/index.vue index 06b64d2..6f4d9b8 100644 --- a/src/views/update/index.vue +++ b/src/views/update/index.vue @@ -1,7 +1,7 @@