update README.rst

This commit is contained in:
long2ice
2020-04-20 15:43:03 +08:00
parent 3941862819
commit 116b02bdea
4 changed files with 6 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import Vue from 'vue'
import axios from 'axios'
import store, { types } from './store'
import store, {types} from './store'
import _ from 'lodash'
const API_URI = process.env.VUE_APP_API_URL || '/admin/api/'
@@ -20,7 +20,7 @@ axios.interceptors.response.use(response => {
return response;
}, ({response}) => {
store.commit(types.STOP_LOADING)
const { data, status, statusText } = response
const {data, status, statusText} = response
switch (status) {
case 422:
@@ -37,7 +37,7 @@ axios.interceptors.response.use(response => {
if (Array.isArray(msg)) {
msg = msg[0].message
}
if (msg) {
Vue.prototype.$snotify.error(String(msg))
} else {
@@ -48,4 +48,4 @@ axios.interceptors.response.use(response => {
Vue.prototype.$http = axios
export default axios
export default axios