mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
* 增加Docker开发环境
* 更新Dockerfile构建文件,升级NodeJS依赖版本。 * 遵循ESLint重新格式化代码,修复部分警告 * 登录Token失效增加登出提示 * 网络请求问题增加错误错误提示 * 升级UI依赖库
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user