feat:1. Okr 添加esc关闭窗口 2. Okr 页面返回错误修复 3. 修复安全漏洞-发送消息接口返回的响应数据,暴露了数据库信息

This commit is contained in:
weifashi 2023-09-11 16:09:49 +08:00
parent 5801d0fc14
commit 4f676c0ccb
5 changed files with 26 additions and 11 deletions

View File

@ -236,10 +236,10 @@ class AbstractModel extends Model
info($eb); info($eb);
} }
if ($e instanceof ApiException) { if ($e instanceof ApiException) {
throw new ApiException($e->getMessage(), $e->getData(), $e->getCode()); throw new ApiException( config('app.debug') ? $e->getMessage() : '处理错误', $e->getData(), $e->getCode());
} else { } else {
info($e); info($e);
throw new ApiException($e->getMessage() ?: '处理错误'); throw new ApiException( config('app.debug') ? ($e->getMessage() ?: '处理错误') : '处理错误');
} }
} }
} }

View File

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

View File

@ -143,6 +143,8 @@ Vue.prototype.goBack = function () {
app.$store.state.routeHistorys.pop(); app.$store.state.routeHistorys.pop();
const length = app.$store.state.routeHistorys.length; const length = app.$store.state.routeHistorys.length;
app.$store.state.routeHistoryLast = length >= 2 ? app.$store.state.routeHistorys[length - 2] : {}; app.$store.state.routeHistoryLast = length >= 2 ? app.$store.state.routeHistorys[length - 2] : {};
} else if (app.$route.name == 'manage-apps') {
app.$router.back();
} else { } else {
app.$router.replace({path: '/'}).catch(_ => {}); app.$router.replace({path: '/'}).catch(_ => {});
app.$store.state.routeHistorys = []; app.$store.state.routeHistorys = [];

View File

@ -25,13 +25,15 @@
> >
<div class="apply-col"> <div class="apply-col">
<div @click="applyClick(item)"> <div @click="applyClick(item)">
<div class="logo">
<img :src="getLogoPath(item.value)" /> <img :src="getLogoPath(item.value)" />
<p>{{ $L(item.label) }}</p>
<div @click.stop="applyClick(item, 'badge')" class="apply-box-top-report"> <div @click.stop="applyClick(item, 'badge')" class="apply-box-top-report">
<Badge v-if="showBadge(item,'approve')" :overflow-count="999" :count="approveUnreadNumber" /> <Badge v-if="showBadge(item,'approve')" :overflow-count="999" :count="approveUnreadNumber" />
<Badge v-if="showBadge(item,'report')" :overflow-count="999" :count="reportUnreadNumber" /> <Badge v-if="showBadge(item,'report')" :overflow-count="999" :count="reportUnreadNumber" />
</div> </div>
</div> </div>
<p>{{ $L(item.label) }}</p>
</div>
</div> </div>
</Col> </Col>
</Row> </Row>

View File

@ -63,9 +63,14 @@
position: relative; position: relative;
border: 1px solid #f1f1f1; border: 1px solid #f1f1f1;
>img { >.logo {
width: 40px; width: 40px;
height: 40px; height: 40px;
display: inline-block;
>img{
width: 100%;
height: 100%;
}
} }
>p{ >p{
@ -110,13 +115,19 @@
background: none; background: none;
border-color: #ffffff; border-color: #ffffff;
>img { .logo {
margin-bottom: 5px; margin-bottom: 8px;
position: relative;
} }
>p{ >p{
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
} }
.apply-box-top-report {
right: -20px;
top: -20px;
}
} }
} }
} }