feat: Update all packages to latest version.

This commit is contained in:
EdwinBetanc0urt 2020-08-26 17:25:01 -04:00
parent 5e7113935c
commit cb936b3a94
9 changed files with 78 additions and 62 deletions

View File

@ -15,62 +15,62 @@
"test:ci": "npm run lint && npm run test:unit"
},
"dependencies": {
"axios": "0.18.1",
"clipboard": "2.0.4",
"codemirror": "5.45.0",
"axios": "0.20.0",
"clipboard": "2.0.6",
"codemirror": "5.57.0",
"core-js": "3.6.5",
"driver.js": "0.9.5",
"dropzone": "5.5.1",
"echarts": "4.2.1",
"driver.js": "0.9.8",
"dropzone": "5.7.2",
"echarts": "4.8.0",
"element-ui": "2.13.2",
"file-saver": "2.0.1",
"fuse.js": "3.4.4",
"js-cookie": "2.2.0",
"file-saver": "2.0.2",
"fuse.js": "6.4.1",
"js-cookie": "2.2.1",
"jsonlint": "1.6.3",
"jszip": "3.2.1",
"normalize.css": "7.0.0",
"jszip": "3.5.0",
"normalize.css": "8.0.1",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"screenfull": "4.2.0",
"path-to-regexp": "6.1.0",
"screenfull": "5.0.2",
"script-loader": "0.7.2",
"sortablejs": "1.8.4",
"tui-editor": "1.3.3",
"vue": "2.6.10",
"sortablejs": "1.10.2",
"tui-editor": "1.4.10",
"vue": "2.6.12",
"vue-count-to": "1.0.13",
"vue-router": "3.0.2",
"vue-splitpane": "1.0.4",
"vuedraggable": "2.20.0",
"vuex": "3.1.0",
"xlsx": "0.14.1"
"vue-router": "3.4.3",
"vue-splitpane": "1.0.6",
"vuedraggable": "2.24.1",
"vuex": "3.5.1",
"xlsx": "0.16.6"
},
"devDependencies": {
"@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
"@vue/cli-service": "4.4.4",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "9.5.1",
"@vue/cli-plugin-babel": "4.5.4",
"@vue/cli-plugin-eslint": "4.5.4",
"@vue/cli-plugin-unit-jest": "4.5.4",
"@vue/cli-service": "4.5.4",
"@vue/test-utils": "1.0.4",
"autoprefixer": "9.8.6",
"babel-eslint": "10.1.0",
"babel-jest": "23.6.0",
"babel-jest": "26.3.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"chokidar": "2.1.5",
"connect": "3.6.6",
"eslint": "6.7.2",
"chalk": "4.1.0",
"chokidar": "3.4.2",
"connect": "3.7.0",
"eslint": "7.7.0",
"eslint-plugin-vue": "6.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"plop": "2.3.0",
"runjs": "4.3.2",
"sass": "1.26.2",
"sass-loader": "8.0.2",
"script-ext-html-webpack-plugin": "2.1.3",
"serve-static": "1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.0",
"vue-template-compiler": "2.6.10"
"html-webpack-plugin": "4.3.0",
"husky": "4.2.5",
"lint-staged": "10.2.13",
"mockjs": "1.1.0",
"plop": "2.7.4",
"runjs": "4.4.2",
"sass": "1.26.10",
"sass-loader": "10.0.1",
"script-ext-html-webpack-plugin": "2.1.4",
"serve-static": "1.14.1",
"svg-sprite-loader": "5.0.0",
"svgo": "1.3.2",
"vue-template-compiler": "2.6.12"
},
"browserslist": [
"> 1%",

View File

@ -10,7 +10,7 @@
</template>
<script>
import pathToRegexp from 'path-to-regexp'
import { compile } from 'path-to-regexp'
export default {
data() {
@ -52,16 +52,16 @@ export default {
pathCompile(path) {
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
const { params } = this.$route
var toPath = pathToRegexp.compile(path)
const toPath = compile(path)
return toPath(params)
},
handleLink(item) {
const { redirect, path } = item
if (redirect) {
this.$router.push(redirect)
this.$router.push(redirect, () => {})
return
}
this.$router.push(this.pathCompile(path))
this.$router.push(this.pathCompile(path), () => {})
}
}
}

View File

@ -12,7 +12,12 @@
class="header-search-select"
@change="change"
>
<el-option v-for="item in options" :key="item.path" :value="item" :label="item.title.join(' > ')" />
<el-option
v-for="element in options"
:key="element.item.path"
:value="element.item.path"
:label="element.item.title.join(' > ')"
/>
</el-select>
</div>
</template>
@ -69,8 +74,8 @@ export default {
this.options = []
this.show = false
},
change(val) {
this.$router.push(val.path)
change(path) {
this.$router.push(path, () => {})
this.search = ''
this.options = []
this.$nextTick(() => {

View File

@ -76,7 +76,7 @@ export default {
},
async logout() {
await this.$store.dispatch('user/logout')
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
this.$router.push(`/login?redirect=${this.$route.fullPath}`, () => {})
}
}
}

View File

@ -142,7 +142,7 @@ export default {
})
},
closeOthersTags() {
this.$router.push(this.selectedTag)
this.$router.push(this.selectedTag, () => {})
this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => {
this.moveToCurrentTag()
})
@ -158,15 +158,17 @@ export default {
toLastView(visitedViews, view) {
const latestView = visitedViews.slice(-1)[0]
if (latestView) {
this.$router.push(latestView.fullPath)
this.$router.push(latestView.fullPath, () => {})
} else {
// now the default is to redirect to the home page if there is no tags-view,
// you can adjust it according to your needs.
if (view.name === 'Dashboard') {
// to reload home page
this.$router.replace({ path: '/redirect' + view.fullPath })
this.$router.replace({
path: '/redirect' + view.fullPath
}, () => {})
} else {
this.$router.push('/')
this.$router.push('/', () => {})
}
}
},

View File

@ -49,7 +49,9 @@ export default {
methods: {
back() {
if (this.$route.query.noGoBack) {
this.$router.push({ path: '/dashboard' })
this.$router.push({
path: '/dashboard'
}, () => {})
} else {
this.$router.go(-1)
}

View File

@ -158,7 +158,10 @@ export default {
this.loading = true
this.$store.dispatch('user/login', this.loginForm)
.then(() => {
this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
this.$router.push({
path: this.redirect || '/',
query: this.otherQuery
}, () => {})
this.loading = false
})
.catch(() => {
@ -189,7 +192,9 @@ export default {
// const codeName = code[type]
// if (codeName) {
// this.$store.dispatch('LoginByThirdparty', codeName).then(() => {
// this.$router.push({ path: this.redirect || '/' })
// this.$router.push({
// path: this.redirect || '/'
// }, () => {})
// })
// } else {
// alert('')

View File

@ -12,7 +12,9 @@ export default {
components: { SwitchRoles },
methods: {
handleRolesChange() {
this.$router.push({ path: '/permission/index?' + +new Date() })
this.$router.push({
path: '/permission/index?' + +new Date()
}, () => {})
}
}
}

View File

@ -32,7 +32,7 @@ export default {
},
watch: {
activeName(val) {
this.$router.push(`${this.$route.path}?tab=${val}`)
this.$router.push(`${this.$route.path}?tab=${val}`, () => {})
}
},
created() {