diff --git a/luci-app-chatgpt-web/luasrc/model/cbi/chatgpt-web.lua b/luci-app-chatgpt-web/luasrc/model/cbi/chatgpt-web.lua
index da4130fbb..38f5e7da1 100644
--- a/luci-app-chatgpt-web/luasrc/model/cbi/chatgpt-web.lua
+++ b/luci-app-chatgpt-web/luasrc/model/cbi/chatgpt-web.lua
@@ -28,5 +28,9 @@ o.rmempty = true
o.default="girl.jpg"
+o=s:option(TextValue, "systemrole" ,translate("Default Role Settings"))
+o.rows = 5
+o.rmempty=false
+
return m
diff --git a/luci-app-chatgpt-web/luasrc/view/chatgpt-web.htm b/luci-app-chatgpt-web/luasrc/view/chatgpt-web.htm
index 61f14ac13..078e5ac7a 100644
--- a/luci-app-chatgpt-web/luasrc/view/chatgpt-web.htm
+++ b/luci-app-chatgpt-web/luasrc/view/chatgpt-web.htm
@@ -539,13 +539,7 @@ local sysrole = uci:get_first('chatgpt-web', 'basic', 'systemrole')
-
-
-
-
![]()
-
-
-
+
@@ -5168,21 +5162,11 @@ local sysrole = uci:get_first('chatgpt-web', 'basic', 'systemrole')
}
}
- const updateAvatar = () => {
-
- userAvatar = "<%=userpic%>" || "/luci-static/chatgpt-web/user/girl.jpg"; // 用户头像
- setAvatarPre.src = userAvatar;
- chatlog.querySelectorAll(".request>.chatAvatar").forEach(ele => {
- ele.children[0].src = userAvatar;
- })
- }
- let localAvatar = localStorage.getItem("userAvatar");
- setAvatar.onchange = () => {
- userAvatar = "<%=userpic%>" || "/luci-static/chatgpt-web/user/girl.jpg"; // 用户头像
- localStorage.setItem("userAvatar", userAvatar);
- updateAvatar();
- }
- setAvatar.dispatchEvent(new Event("change"));
+
+ userAvatar = "<%=userpic%>" || "/luci-static/chatgpt-web/user/girl.jpg"; // 用户头像
+
+ localStorage.setItem("userAvatar", userAvatar);
+
let localSystem = localStorage.getItem("system");
systemEle.onchange = () => {
systemRole = systemEle.value;