代码优化
This commit is contained in:
@@ -2,14 +2,14 @@ import request from '@/utils/request'
|
|||||||
|
|
||||||
export function get() {
|
export function get() {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/qiNiuConfig',
|
url: 'api/qiNiuContent/config',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function update(data) {
|
export function update(data) {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/qiNiuConfig',
|
url: 'api/qiNiuContent/config',
|
||||||
data,
|
data,
|
||||||
method: 'put'
|
method: 'put'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ const install = function (Vue) {
|
|||||||
if (this.$options.dicts instanceof Array) {
|
if (this.$options.dicts instanceof Array) {
|
||||||
const dict = {
|
const dict = {
|
||||||
dict: {},
|
dict: {},
|
||||||
label: {},
|
label: {}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
dict,
|
dict
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {}
|
return {}
|
||||||
@@ -22,7 +22,7 @@ const install = function (Vue) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
10
src/main.js
10
src/main.js
@@ -16,7 +16,7 @@ import store from './store'
|
|||||||
|
|
||||||
import '@/icons' // icon
|
import '@/icons' // icon
|
||||||
import './router/index' // permission control
|
import './router/index' // permission control
|
||||||
// import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
|
|
||||||
Vue.use(mavonEditor)
|
Vue.use(mavonEditor)
|
||||||
Vue.use(permission)
|
Vue.use(permission)
|
||||||
@@ -24,10 +24,10 @@ Vue.use(dict)
|
|||||||
Vue.use(ElementUI, { locale })
|
Vue.use(ElementUI, { locale })
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
// const routerPush = Router.prototype.push
|
const routerPush = Router.prototype.push
|
||||||
// Router.prototype.push = function push(location) {
|
Router.prototype.push = function push(location) {
|
||||||
// return routerPush.call(this, location).catch(error => error)
|
return routerPush.call(this, location).catch(error => error)
|
||||||
// }
|
}
|
||||||
require('babel-polyfill')
|
require('babel-polyfill')
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export default {
|
|||||||
this.doInit()
|
this.doInit()
|
||||||
},
|
},
|
||||||
beforeInit() {
|
beforeInit() {
|
||||||
this.url = 'api/jobLogs'
|
this.url = 'api/jobs/logs'
|
||||||
const sort = 'id,desc'
|
const sort = 'id,desc'
|
||||||
const query = this.query
|
const query = this.query
|
||||||
const value = query.value
|
const value = query.value
|
||||||
|
|||||||
Reference in New Issue
Block a user