!183 同步修复一些问题
Merge pull request !183 from 疯狂的狮子Li/dev
| | |
| | | VITE_APP_CONTEXT_PATH = '/' |
| | | |
| | | # 监控地址 |
| | | VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/applications' |
| | | VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/admin/applications' |
| | | |
| | | # SnailJob 控制台地址 |
| | | VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job' |
| | |
| | | .el-form--inline .el-input { |
| | | width: 240px; |
| | | } |
| | | |
| | | /* 设置 el-message-box 消息弹框内容强制换行 */ |
| | | .el-message-box .el-message-box__message { |
| | | word-break: break-word; |
| | | } |
| | |
| | | <el-table-column prop="updateTime" label="结束时间" width="160" :show-overflow-tooltip="true" sortable align="center"></el-table-column> |
| | | <el-table-column |
| | | prop="runDuration" |
| | | label="运行时常" |
| | | label="运行时长" |
| | | width="140" |
| | | :show-overflow-tooltip="true" |
| | | sortable |
| | |
| | | * @returns {Boolean} |
| | | */ |
| | | export function isPathMatch(pattern: string, path: string) { |
| | | const regexPattern = pattern.replace(/\//g, '\\/').replace(/\*\*/g, '.*').replace(/\*/g, '[^\\/]*') |
| | | const regex = new RegExp(`^${regexPattern}$`) |
| | | return regex.test(path) |
| | | const regexPattern = pattern |
| | | .replace(/\//g, '\\/') |
| | | .replace(/\*\*/g, '__DOUBLE_STAR__') |
| | | .replace(/\*/g, '[^\\/]*') |
| | | .replace(/__DOUBLE_STAR__/g, '.*'); |
| | | const regex = new RegExp(`^${regexPattern}$`); |
| | | return regex.test(path); |
| | | } |
| | | |
| | | /** |