From b40b781d0a9e4441256cef3789e06cf8bfe9e3ec Mon Sep 17 00:00:00 2001 From: dqjdda <201507802@qq.com> Date: Thu, 24 Oct 2019 17:57:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/qiniu.js | 4 ++-- src/components/dict/Dict.js | 4 ++-- src/components/dict/index.js | 12 ++++++------ src/main.js | 10 +++++----- src/views/system/timing/log.vue | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/api/qiniu.js b/src/api/qiniu.js index d5b979b..0e5850d 100644 --- a/src/api/qiniu.js +++ b/src/api/qiniu.js @@ -2,14 +2,14 @@ import request from '@/utils/request' export function get() { return request({ - url: 'api/qiNiuConfig', + url: 'api/qiNiuContent/config', method: 'get' }) } export function update(data) { return request({ - url: 'api/qiNiuConfig', + url: 'api/qiNiuContent/config', data, method: 'put' }) diff --git a/src/components/dict/Dict.js b/src/components/dict/Dict.js index 80d046e..04f3993 100644 --- a/src/components/dict/Dict.js +++ b/src/components/dict/Dict.js @@ -2,11 +2,11 @@ import Vue from 'vue' import { get as getDictDetail } from '@/api/dictDetail' export default class Dict { - constructor (dict) { + constructor(dict) { this.dict = dict } - async init (names, completeCallback) { + async init(names, completeCallback) { if (names === undefined || name === null) { throw new Error('need dict names') } diff --git a/src/components/dict/index.js b/src/components/dict/index.js index 4d27a7b..0952f43 100644 --- a/src/components/dict/index.js +++ b/src/components/dict/index.js @@ -1,20 +1,20 @@ import Dict from './Dict' -const install = function (Vue) { +const install = function(Vue) { Vue.mixin({ - data () { + data() { if (this.$options.dicts instanceof Array) { const dict = { dict: {}, - label: {}, + label: {} } return { - dict, + dict } } return {} }, - created () { + created() { if (this.$options.dicts instanceof Array) { new Dict(this.dict).init(this.$options.dicts, () => { this.$nextTick(() => { @@ -22,7 +22,7 @@ const install = function (Vue) { }) }) } - }, + } }) } diff --git a/src/main.js b/src/main.js index dca6efa..566657c 100644 --- a/src/main.js +++ b/src/main.js @@ -16,7 +16,7 @@ import store from './store' import '@/icons' // icon import './router/index' // permission control -// import Router from 'vue-router' +import Router from 'vue-router' Vue.use(mavonEditor) Vue.use(permission) @@ -24,10 +24,10 @@ Vue.use(dict) Vue.use(ElementUI, { locale }) Vue.config.productionTip = false -// const routerPush = Router.prototype.push -// Router.prototype.push = function push(location) { -// return routerPush.call(this, location).catch(error => error) -// } +const routerPush = Router.prototype.push +Router.prototype.push = function push(location) { + return routerPush.call(this, location).catch(error => error) +} require('babel-polyfill') new Vue({ diff --git a/src/views/system/timing/log.vue b/src/views/system/timing/log.vue index 522bdc1..0e8d667 100644 --- a/src/views/system/timing/log.vue +++ b/src/views/system/timing/log.vue @@ -78,7 +78,7 @@ export default { this.doInit() }, beforeInit() { - this.url = 'api/jobLogs' + this.url = 'api/jobs/logs' const sort = 'id,desc' const query = this.query const value = query.value