mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-26 05:38:15 +00:00
fix: ensure that safari is running properly, fix #875
This commit is contained in:
@@ -61,6 +61,7 @@ module.exports = defineConfig({
|
|||||||
'vue/singleline-html-element-content-newline': 'off',
|
'vue/singleline-html-element-content-newline': 'off',
|
||||||
'vue/attribute-hyphenation': 'off',
|
'vue/attribute-hyphenation': 'off',
|
||||||
'vue/require-default-prop': 'off',
|
'vue/require-default-prop': 'off',
|
||||||
|
'vue/script-setup-uses-vars': 'off',
|
||||||
'vue/html-self-closing': [
|
'vue/html-self-closing': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
@@ -1,31 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
ignores: [(commit) => commit.includes('init')],
|
ignores: [(commit) => commit.includes('init')],
|
||||||
extends: ['@commitlint/config-conventional'],
|
extends: ['@commitlint/config-conventional'],
|
||||||
parserPreset: {
|
|
||||||
parserOpts: {
|
|
||||||
headerPattern: /^(\w*|[\u4e00-\u9fa5]*)(?:[\(\(](.*)[\)\)])?[\:\:] (.*)/,
|
|
||||||
headerCorrespondence: ['type', 'scope', 'subject'],
|
|
||||||
referenceActions: [
|
|
||||||
'close',
|
|
||||||
'closes',
|
|
||||||
'closed',
|
|
||||||
'fix',
|
|
||||||
'fixes',
|
|
||||||
'fixed',
|
|
||||||
'resolve',
|
|
||||||
'resolves',
|
|
||||||
'resolved',
|
|
||||||
],
|
|
||||||
issuePrefixes: ['#'],
|
|
||||||
noteKeywords: ['BREAKING CHANGE'],
|
|
||||||
fieldPattern: /^-(.*?)-$/,
|
|
||||||
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,
|
|
||||||
revertCorrespondence: ['header', 'hash'],
|
|
||||||
warn() {},
|
|
||||||
mergePattern: null,
|
|
||||||
mergeCorrespondence: null,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
rules: {
|
rules: {
|
||||||
'body-leading-blank': [2, 'always'],
|
'body-leading-blank': [2, 'always'],
|
||||||
'footer-leading-blank': [1, 'always'],
|
'footer-leading-blank': [1, 'always'],
|
||||||
|
@@ -72,14 +72,16 @@ export function transformRouteToMenu(routeModList: AppRouteModule[], routerMappi
|
|||||||
/**
|
/**
|
||||||
* config menu with given params
|
* config menu with given params
|
||||||
*/
|
*/
|
||||||
const menuParamRegex = /(?<=:)([\s\S]+?)((?=\/)|$)/g;
|
const menuParamRegex = /(?::)([\s\S]+?)((?=\/)|$)/g;
|
||||||
export function configureDynamicParamsMenu(menu: Menu, params: RouteParams) {
|
export function configureDynamicParamsMenu(menu: Menu, params: RouteParams) {
|
||||||
const { path, paramPath } = toRaw(menu);
|
const { path, paramPath } = toRaw(menu);
|
||||||
let realPath = paramPath ? paramPath : path;
|
let realPath = paramPath ? paramPath : path;
|
||||||
const matchArr = realPath.match(menuParamRegex);
|
const matchArr = realPath.match(menuParamRegex);
|
||||||
|
|
||||||
matchArr?.forEach((it) => {
|
matchArr?.forEach((it) => {
|
||||||
if (params[it]) {
|
const realIt = it.substr(1);
|
||||||
realPath = realPath.replace(`:${it}`, params[it] as string);
|
if (params[realIt]) {
|
||||||
|
realPath = realPath.replace(`:${realIt}`, params[realIt] as string);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// save original param path.
|
// save original param path.
|
||||||
|
Reference in New Issue
Block a user