From d14e024c23bb32162725af7cb5405cbd97b575f0 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期三, 23 十月 2024 16:13:06 +0800 Subject: [PATCH] * --- src/main/webapp/views/index.html | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html index a055afc..dfef3e9 100644 --- a/src/main/webapp/views/index.html +++ b/src/main/webapp/views/index.html @@ -366,20 +366,12 @@ } $.ajax({ url: baseUrl + "/console/system/switch", - headers: { - 'token': localStorage.getItem('token') - }, - data: { - operatorType : operatorTypeI - }, + headers: {'token': localStorage.getItem('token')}, + data: {operatorType : operatorTypeI}, method: 'POST', success: function (res) { if (res.code === 200) { - if (res.data.status) { - that.valueSystem = true; - } else { - that.valueSystem = false; - } + that.valueSystem = res.data.status; } } }); -- Gitblit v1.9.1