commit
b1f0b3c096
@ -11,7 +11,7 @@ VITE_APP_BASE_API = '/dev-api'
|
|||||||
VITE_APP_CONTEXT_PATH = '/'
|
VITE_APP_CONTEXT_PATH = '/'
|
||||||
|
|
||||||
# 监控地址
|
# 监控地址
|
||||||
VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/applications'
|
VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/admin/applications'
|
||||||
|
|
||||||
# SnailJob 控制台地址
|
# SnailJob 控制台地址
|
||||||
VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job'
|
VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job'
|
||||||
|
@ -146,3 +146,8 @@
|
|||||||
.el-form--inline .el-input {
|
.el-form--inline .el-input {
|
||||||
width: 240px;
|
width: 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 设置 el-message-box 消息弹框内容强制换行 */
|
||||||
|
.el-message-box .el-message-box__message {
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<el-table-column prop="updateTime" label="结束时间" width="160" :show-overflow-tooltip="true" sortable align="center"></el-table-column>
|
<el-table-column prop="updateTime" label="结束时间" width="160" :show-overflow-tooltip="true" sortable align="center"></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="runDuration"
|
prop="runDuration"
|
||||||
label="运行时常"
|
label="运行时长"
|
||||||
width="140"
|
width="140"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
sortable
|
sortable
|
||||||
|
@ -5,9 +5,13 @@
|
|||||||
* @returns {Boolean}
|
* @returns {Boolean}
|
||||||
*/
|
*/
|
||||||
export function isPathMatch(pattern: string, path: string) {
|
export function isPathMatch(pattern: string, path: string) {
|
||||||
const regexPattern = pattern.replace(/\//g, '\\/').replace(/\*\*/g, '.*').replace(/\*/g, '[^\\/]*')
|
const regexPattern = pattern
|
||||||
const regex = new RegExp(`^${regexPattern}$`)
|
.replace(/\//g, '\\/')
|
||||||
return regex.test(path)
|
.replace(/\*\*/g, '__DOUBLE_STAR__')
|
||||||
|
.replace(/\*/g, '[^\\/]*')
|
||||||
|
.replace(/__DOUBLE_STAR__/g, '.*');
|
||||||
|
const regex = new RegExp(`^${regexPattern}$`);
|
||||||
|
return regex.test(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user