fix:1.修复任务详情英文不换行, 2.分享文件皮肤跟语言统一 ,3.聊天未读数修复

This commit is contained in:
weifashi 2023-08-21 20:42:45 +08:00
parent d64d06a70a
commit e928ff1fce
6 changed files with 23 additions and 9 deletions

View File

@ -175,7 +175,7 @@ services:
okr:
container_name: "dootask-okr-${APP_ID}"
image: "kuaifan/doookr:0.0.3"
image: "kuaifan/doookr:0.0.4"
environment:
TZ: "${TIMEZONE:-PRC}"
DOO_TASK_URL: "http://${APP_IPPR}.3"

View File

@ -93,6 +93,14 @@ if (!isElectron && !isEEUiApp) {
ViewUI.LoadingBar._load = true;
ViewUI.LoadingBar.start();
}, 300)
if (to.query?.theme) {
store.dispatch("setTheme", to.query?.theme)
}
if (to.query?.lang && window.localStorage.getItem("__language:type__") != to.query?.lang) {
window.localStorage.setItem("__language:type__", to.query?.lang);
window.location.reload();
return false;
}
next();
});
router.afterEach(() => {

View File

@ -34,6 +34,7 @@
<style lang="scss" scoped>
.task-editor {
position: relative;
word-break: break-all;
.task-editor-operate {
position: absolute;
top: 0;

View File

@ -734,10 +734,18 @@
text = text.replace(atReg, `<span class="mention me" data-id="${userid}">`)
// 处理内容连接
if (/https*:\/\//.test(text)) {
const match = $.apiUrl('').match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n]+)/im);
const theme = window.localStorage.getItem("__theme:mode__")
const lang = window.localStorage.getItem("__language:type__")
text = text.split(/(<[^>]*>)/g).map(string => {
if (string && !/<[^>]*>/.test(string)) {
string = string.replace(/(^|[^'"])((https*:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;|#|@|,|!)+))/g, "$1<a href=\"$2\" target=\"_blank\">$2</a>")
}
if (match && match[1] && string.indexOf(match[1]) !== -1) {
if (string.indexOf("?") == -1) {
string = string.replace(/(href="[^"]*)/g, (string.indexOf("?") == -1 ? '$1?' : '$1&') + `theme=${theme}&lang=${lang}`);
}
}
return string;
}).join("")
}

View File

@ -963,12 +963,9 @@ export default {
return b.msg_id - a.msg_id
})[0]
if (this.allMsgs.findIndex(({id}) => id == item.msg_id) === -1) {
if (item.label === '{UNREAD}') {
return Object.assign(item, {
'label': this.$L(`未读消息${unread}`)
})
}
return item
return Object.assign(item, {
'label': this.$L(`未读消息${unread}`)
})
}
return null
},

View File

@ -349,8 +349,8 @@ body.window-portrait {
.apply-head{
margin: 24px 24px 0 24px;
}
.apply-row{
padding: 16px 24px;
.apply-content{
padding: 16px 20px;
}
}
}