* 增加Docker开发环境

* 更新Dockerfile构建文件,升级NodeJS依赖版本。
 * 遵循ESLint重新格式化代码,修复部分警告
 * 登录Token失效增加登出提示
 * 网络请求问题增加错误错误提示
 * 升级UI依赖库
This commit is contained in:
yaziming
2020-06-19 16:57:00 +08:00
parent e7ff02589b
commit aeaa4493a7
129 changed files with 18222 additions and 14180 deletions

View File

@@ -7,13 +7,13 @@ const state = {
const getters = {}
const mutations = {
SET_DOC_DATA (state, value) {
SET_DOC_DATA(state, value) {
state.docData = value
}
}
const actions = {
async getDocData ({ commit }) {
async getDocData({ commit }) {
const res = await request.get('/docs')
const data = JSON.parse(res.data.data.string)
@@ -22,8 +22,8 @@ const actions = {
const cache = {}
// iterate paths
for (let path in data) {
if (data.hasOwnProperty(path)) {
for (const path in data) {
if (Object.prototype.hasOwnProperty.call(data, path)) {
const d = data[path]
if (path.match(/\/$/)) {
cache[path] = d