机房用户更新ip
This commit is contained in:
@@ -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`, //获取唯一标识是否存在
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<div>序号:<input v-model="setId" type="text" autofocus /></div>
|
||||
<div>密钥:<input type="text" /></div>
|
||||
<div class="button" @click="setFingerprint2('set')">记录浏览器标识</div>
|
||||
<div class="button" @click="setFingerprint2('put')">更新浏览器标识</div>
|
||||
<div class="button" @click="setFingerprint2('delete')">注销浏览器标识</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user