Skip to content

Commit d649d0f

Browse files
committed
Fix(table): add cloneDeep for default article data
1 parent a77ba43 commit d649d0f

File tree

4 files changed

+287
-272
lines changed

4 files changed

+287
-272
lines changed

Diff for: .github/main.workflow

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ action "Filters for GitHub Actions" {
88
args = "branch master"
99
}
1010

11-
action "Yarn install" {
12-
uses = "borales/actions-yarn@master"
11+
action "Yarn install" {
1312
needs = ["Filters for GitHub Actions"]
13+
uses = "borales/actions-yarn@master"
1414
args = "install"
1515
}
1616

17-
action "Yarn build" {
18-
uses = "borales/actions-yarn@master"
17+
action "Yarn build" {
1918
needs = ["Yarn install"]
19+
uses = "borales/actions-yarn@master"
2020
args = "build:prod"
2121
}
2222

2323
action "Deploy" {
24-
uses = "maxheld83/[email protected]"
2524
needs = ["Yarn build"]
25+
uses = "maxheld83/[email protected]"
2626
env = {
2727
BUILD_DIR = "dist/"
2828
}

Diff for: package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"cors": "^2.8.5",
2222
"driver.js": "^0.9.7",
2323
"echarts": "^4.2.1",
24-
"element-ui": "^2.10.0",
24+
"element-ui": "^2.10.1",
2525
"faker": "^4.1.0",
2626
"file-saver": "^2.0.2",
2727
"fuse.js": "^3.4.5",
2828
"js-cookie": "^2.2.0",
2929
"jsonlint": "^1.6.3",
30-
"jszip": "^3.2.1",
30+
"jszip": "^3.2.2",
3131
"lodash": "^4.17.11",
3232
"morgan": "^1.9.1",
3333
"normalize.css": "^8.0.1",
@@ -37,18 +37,18 @@
3737
"screenfull": "^4.2.0",
3838
"script-loader": "^0.7.2",
3939
"sortablejs": "^1.9.0",
40-
"tinymce": "^5.0.9",
40+
"tinymce": "^5.0.11",
4141
"tui-editor": "^1.4.3",
4242
"vue": "^2.6.10",
4343
"vue-class-component": "^7.1.0",
4444
"vue-count-to": "^1.0.13",
4545
"vue-i18n": "^8.11.2",
4646
"vue-image-crop-upload": "^2.5.0",
4747
"vue-property-decorator": "^8.2.1",
48-
"vue-router": "^3.0.6",
48+
"vue-router": "^3.0.7",
4949
"vue-splitpane": "^1.0.4",
5050
"vue-svgicon": "^3.2.6",
51-
"vue2-dropzone": "^3.5.9",
51+
"vue2-dropzone": "^3.6.0",
5252
"vuedraggable": "^2.23.0",
5353
"vuex": "^3.1.1",
5454
"vuex-class": "^0.3.2",
@@ -75,13 +75,13 @@
7575
"@types/tinymce": "^4.5.22",
7676
"@types/webpack-env": "^1.13.9",
7777
"@types/yamljs": "^0.2.30",
78-
"@vue/cli-plugin-babel": "^3.8.0",
79-
"@vue/cli-plugin-e2e-cypress": "^3.8.0",
80-
"@vue/cli-plugin-eslint": "^3.8.0",
81-
"@vue/cli-plugin-pwa": "^3.8.0",
82-
"@vue/cli-plugin-typescript": "^3.8.1",
83-
"@vue/cli-plugin-unit-jest": "^3.8.0",
84-
"@vue/cli-service": "^3.8.4",
78+
"@vue/cli-plugin-babel": "^3.9.0",
79+
"@vue/cli-plugin-e2e-cypress": "^3.9.0",
80+
"@vue/cli-plugin-eslint": "^3.9.1",
81+
"@vue/cli-plugin-pwa": "^3.9.0",
82+
"@vue/cli-plugin-typescript": "^3.9.0",
83+
"@vue/cli-plugin-unit-jest": "^3.9.0",
84+
"@vue/cli-service": "^3.9.0",
8585
"@vue/eslint-config-standard": "^4.0.0",
8686
"@vue/eslint-config-typescript": "^4.0.0",
8787
"@vue/test-utils": "^1.0.0-beta.29",
@@ -92,11 +92,11 @@
9292
"eslint-plugin-vue": "^5.2.3",
9393
"fibers": "^4.0.1",
9494
"jest": "^24.8.0",
95-
"lint-staged": "^9.0.0",
96-
"sass": "^1.22.2",
95+
"lint-staged": "^9.0.2",
96+
"sass": "^1.22.3",
9797
"sass-loader": "^7.1.0",
9898
"style-resources-loader": "^1.2.1",
99-
"swagger-routes-express": "^3.0.1",
99+
"swagger-routes-express": "^3.0.2",
100100
"ts-jest": "^24.0.2",
101101
"ts-node-dev": "^1.0.0-pre.40",
102102
"typescript": "3.5.2",

Diff for: src/views/table/complex-table.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@
363363
<script lang="ts">
364364
import { Component, Vue } from 'vue-property-decorator'
365365
import { Form } from 'element-ui'
366+
import { cloneDeep } from 'lodash'
366367
import { getArticles, getPageviews, createArticle, updateArticle, defaultArticleData } from '@/api/articles'
367368
import { IArticleData } from '@/api/types'
368369
import { exportJson2Excel } from '@/utils/excel'
@@ -475,7 +476,7 @@ export default class extends Vue {
475476
}
476477
477478
private resetTempArticleData() {
478-
this.tempArticleData = defaultArticleData
479+
this.tempArticleData = cloneDeep(defaultArticleData)
479480
}
480481
481482
private handleCreate() {

0 commit comments

Comments
 (0)