Commit 33245c06 authored by 郭志伟's avatar 郭志伟

build(ui): 升级组件库

parent 57012dcc
...@@ -86,6 +86,14 @@ export default { ...@@ -86,6 +86,14 @@ export default {
this.fetchTenantAuthData(); this.fetchTenantAuthData();
console.log('isDashboard', this.$route); console.log('isDashboard', this.$route);
}, },
watch: {
$route(to, from) {
console.log(to, from);
if (to.path !== from.path && to.path === '/list') {
this.activeName = 0;
}
},
},
computed: { computed: {
...mapState([ 'tmplList', 'draftList', 'workist' ]), ...mapState([ 'tmplList', 'draftList', 'workist' ]),
pageList() { pageList() {
......
module.exports = {
extends: ['@commitlint/config-angular'],
};
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
"@hubcarl/json-typescript-mapper": "^2.0.0", "@hubcarl/json-typescript-mapper": "^2.0.0",
"@qg/apollo-nodejs": "^2.1.2", "@qg/apollo-nodejs": "^2.1.2",
"@qg/cherry-ui": "2.23.10", "@qg/cherry-ui": "2.23.10",
"@qg/citrus-ui": "0.3.17", "@qg/citrus-ui": "0.3.18-beta1",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-angular": "^13.2.0",
"@riophae/vue-treeselect": "^0.4.0", "@riophae/vue-treeselect": "^0.4.0",
"@types/lodash": "^4.14.117", "@types/lodash": "^4.14.117",
"@types/node": "^10.12.0", "@types/node": "^10.12.0",
...@@ -79,7 +81,12 @@ ...@@ -79,7 +81,12 @@
"vuex-router-sync": "^5.0.0", "vuex-router-sync": "^5.0.0",
"webpack-sentry-plugin": "^2.0.3" "webpack-sentry-plugin": "^2.0.3"
}, },
"devDependencies": {}, "devDependencies": {
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-angular": "^13.2.0"
},
"egg": { "egg": {
"typescript": true "typescript": true
}, },
...@@ -100,5 +107,17 @@ ...@@ -100,5 +107,17 @@
"commitizen": { "commitizen": {
"path": "./node_modules/cz-conventional-changelog" "path": "./node_modules/cz-conventional-changelog"
} }
},
"lint-staged": {
"src/**/*.{js,vue}": [
"tslint --fix --project . -c tslint.json 'app/web/**/*{.ts}'",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment