diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dfd407..d1d8dbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ ## 变更记录 + +内网聊天增加手工添加ip,跨网段通信在ping通的前提下如果发现不了对方可手工添加对方ip +修复思维导图保存的文件每次打开主题又会变成默认主题 +新增webdav客户端 +应用商店新增可随机启动 + - 2024-08-07 1. 新增web端安装 - 2024-08-06 @@ -8,4 +14,13 @@ - 2024-08-02 1. 修复桌面更换背景文字颜色问题 2. 修复安装插件没有配置binPath的问题 -3. 新增linux环境下获取安装命令的方法 \ No newline at end of file +3. 新增linux环境下获取安装命令的方法 + +bug梳理: +1. 思维导图保存的文件每次打开主题又会变成默认主题 +2. 公网版部署udp转发和文件上传存储等 +3. 内网聊天功能,如果是装了虚拟机的电脑,会出现多个虚拟网卡,内网可以看到用户但是IP不对着,发消息收不到的 +4. 建议开启webDav +5. web 的甘特图保存不了 +6. 场景适用性:系统默认连接gitee远程软件安装包,缺少默认读取本地安装包路径的json配置文件的打包设置选项(比如在安装时自动读取安装U盘当前目录中/或已直接打包进安装包中的mysql/nginx/php/python本地离线安装包、以及企业自用OA WebApp的本地离线安装包,无需联网,直接同步离线安装) +7. 功能完整性:安装的服务型应用(如mysql/nginx/php/python)没有跟随软件环境启动后自动启动的设置选项,依赖于服务型应用的AI Web UI、php /python应用没有创建桌面快捷方式/菜单快捷方式的入口(即:AI Web UI、php /python应用无法安装和自动开箱即用)。 diff --git a/Dockerfile b/Dockerfile index 0f5ab67..43845d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ ENV GO111MODULE=on \ CGO_ENABLED=0 \ GOOS=linux \ GOARCH=amd64 + GODOTOPTYPE=docker # 设置后续指令的工作目录 WORKDIR /build diff --git a/frontend/src/components/localchat/Chat.vue b/frontend/src/components/localchat/Chat.vue index 71c4d77..ef2eea1 100644 --- a/frontend/src/components/localchat/Chat.vue +++ b/frontend/src/components/localchat/Chat.vue @@ -1,12 +1,12 @@ \ No newline at end of file diff --git a/frontend/src/components/setting/SetSystem.vue b/frontend/src/components/setting/SetSystem.vue index ce72be7..069a18e 100644 --- a/frontend/src/components/setting/SetSystem.vue +++ b/frontend/src/components/setting/SetSystem.vue @@ -2,12 +2,8 @@
+
-
- - - - -
- - -
- - - {{ t("confirm") }} - -
-
-

备份

@@ -141,22 +82,8 @@ const storeList = [ value: "net", }, ]; -const userTypeList = [ - { - title: "个人用户", - value: "person", - }, - { - title: "企业用户", - value: "member", - }, - { - title: "企业管理员", - value: "compony", - }, -]; -const items = ["个人存储", "用户角色", "备份还原"]; +const items = ["个人存储","备份还原"]; const activeIndex = ref(0); @@ -172,20 +99,40 @@ function selectFile() { function submitOsInfo() { const saveData = toRaw(config.value); const postData: any = { - name: "osInfo", + //name: "osPath", type: saveData.storeType, }; if (saveData.storeType === "local") { if (saveData.storePath === "") { - // Dialog.showMessageBox({ - // message: "存储地址不能为空", - // type: "error", - // }); setSystemConfig(saveData); RestartApp(); return; } + postData.name = "osPath"; postData.value = saveData.storePath; + const postUrl = config.value.apiUrl + "/system/setting"; + fetch(postUrl, { + method: "POST", + body: JSON.stringify([postData]), + }) + .then((res) => res.json()) + .then((res) => { + if (res.code === 0) { + setSystemConfig(saveData); + Dialog.showMessageBox({ + message: t("save.success"), + title: t("language"), + type: "info", + }).then(() => { + RestartApp(); + }); + } else { + Dialog.showMessageBox({ + message: res.message, + type: "error", + }); + } + }); } if (saveData.storeType === "net") { if (saveData.storenet.url === "") { @@ -195,79 +142,26 @@ function submitOsInfo() { }); return; } - if (saveData.storenet.username === "") { - Dialog.showMessageBox({ - message: "用户名不能为空", - type: "error", - }); - return; - } - if (saveData.storenet.password === "") { + const urlRegex = /^(https?:\/\/)[^\/]+$/; + if(!urlRegex.test(saveData.storenet.url)){ Dialog.showMessageBox({ - message: "密码不能为空", + message: "服务器地址格式错误", type: "error", }); return; } - } - const postUrl = config.value.apiUrl + "/system/setting"; - fetch(postUrl, { - method: "POST", - body: JSON.stringify(postData), - }) - .then((res) => res.json()) - .then((res) => { - //console.log(res); - if (res.code === 0) { - setSystemConfig(saveData); - Dialog.showMessageBox({ - message: t("save.success"), - title: t("language"), - type: "info", - }).then(() => { - //location.reload(); - RestartApp(); - }); - } else { - Dialog.showMessageBox({ - message: res.message, - type: "error", - }); - } - }); -} -function submitUserInfo() { - const saveData = toRaw(config.value); - if (saveData.userType === "member" && saveData.userInfo.serverUrl == "") { + setSystemConfig(saveData); Dialog.showMessageBox({ - message: "服务器地址不能为空", - type: "error", + message: t("save.success"), + title: t("language"), + type: "info", + }).then(() => { + RestartApp(); }); - return; } - if (saveData.userType !== "person") { - if (!saveData.userInfo.username && saveData.userInfo.username == "") { - Dialog.showMessageBox({ - message: "用户名不能为空", - type: "error", - }); - return; - } - if (!saveData.userInfo.password && saveData.userInfo.password == "") { - Dialog.showMessageBox({ - message: "密码不能为空", - type: "error", - }); - return; - } - } - setSystemConfig(saveData); - Dialog.showMessageBox({ - message: t("save.success"), - title: t("language"), - type: "info", - }); + } + async function exportBackup() { const { setProgress } = Dialog.showProcessDialog({ message: `正在打包`, @@ -373,9 +267,11 @@ async function importBackup(path = "") {