From 2bb2bae3fcf6a22e91199b27e6f6273976297597 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 13 Sep 2024 11:28:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=88=BF=E7=94=A8=E6=88=B7=E6=9B=B4?= =?UTF-8?q?=E6=96=B0ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tool/https.js | 1 + src/views/setIdentification.vue | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tool/https.js b/src/tool/https.js index d7c6be83..9b964e5b 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -135,6 +135,7 @@ export const Https = { deleteNoLoginRequiredNew:`/api/third/party/deleteNoLoginRequiredNew`, //机房用户注销 addNoLoginRequiredNew:`api/third/party/addNoLoginRequiredNew`, //机房用户注册 + updateNoLoginRequiredNew:`api/third/party/updateNoLoginRequiredNew`, //机房用户更新 endpoint:`api/third/party/your-secured-endpoint`, //获取唯一标识是否存在 diff --git a/src/views/setIdentification.vue b/src/views/setIdentification.vue index d3b01fe8..2c47c36b 100644 --- a/src/views/setIdentification.vue +++ b/src/views/setIdentification.vue @@ -3,6 +3,7 @@
序号:
密钥:
记录浏览器标识
+
更新浏览器标识
注销浏览器标识
@@ -76,9 +77,11 @@ export default defineComponent({ // console.log(data); // return - if(str == 'set'){ + if(str == 'set' || str == 'put'){ + let url = Https.httpUrls.addNoLoginRequiredNew + if(str == 'put')url = Https.httpUrls.updateNoLoginRequiredNew // return - Https.axiosPost(Https.httpUrls.addNoLoginRequiredNew, data) + Https.axiosPost(url, data) .then((rv) => { localStorage.setItem('murmurStr',murmur) const htmlContent = rv