From 410a7a2ca039361a0082655fd95f79abd50ca33f Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期二, 23 十二月 2025 14:36:47 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/config/config.js |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/config/config.js b/src/main/webapp/static/js/config/config.js
index 2707844..12ea9c0 100644
--- a/src/main/webapp/static/js/config/config.js
+++ b/src/main/webapp/static/js/config/config.js
@@ -259,6 +259,27 @@
                     }
                 });
                 break;
+            case 'activate':
+                layer.confirm('纭畾鎵ц涓�閿縺娲诲悧', function(){
+                    $.ajax({
+                        url: baseUrl + "/license/activate",
+                        headers: {'token': localStorage.getItem('token')},
+                        method: 'POST',
+                        success: function (res) {
+                            if (res.code === 200){
+                                layer.msg('婵�娲绘垚鍔�');
+                            } else if (res.code === 403){
+                                top.location.href = baseUrl+"/";
+                            } else {
+                                layer.msg(res.msg)
+                            }
+                        },
+                        error: function () {
+                            layer.msg('婵�娲诲け璐�');
+                        }
+                    });
+                });
+                break;
         }
     });
 

--
Gitblit v1.9.1