From 77abbd5eaf6a4c653574412fa1dd4fb7e60d4758 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 1 Feb 2023 15:31:11 +0800 Subject: [PATCH] feat: add editor component --- resources/admin/components/editor/index.vue | 104 +++++++++++++++++++- resources/admin/support/http.ts | 3 +- 2 files changed, 104 insertions(+), 3 deletions(-) diff --git a/resources/admin/components/editor/index.vue b/resources/admin/components/editor/index.vue index b3d9bbc..6ca6c8b 100644 --- a/resources/admin/components/editor/index.vue +++ b/resources/admin/components/editor/index.vue @@ -1 +1,103 @@ - +
+ +
+ + + + + + diff --git a/resources/admin/support/http.ts b/resources/admin/support/http.ts index 1540a8a..eed7728 100644 --- a/resources/admin/support/http.ts +++ b/resources/admin/support/http.ts @@ -137,7 +137,7 @@ class Http { this.config.baseURL = this.baseURL ? this.baseURL : env('VITE_BASE_URL') // set timeout - this.config.timeout = this.timeout ? this.timeout : 5000 + this.config.timeout = this.timeout ? this.timeout : 10000 // set ajax request this.headers['X-Requested-With'] = 'XMLHttpRequest' @@ -188,7 +188,6 @@ class Http { router.push('/login') }) } else if (code === Code.LOGIN_BLACKLIST || code === Code.USER_FORBIDDEN) { - console.log(123123) Message.error(message || 'Error') removeAuthToken() // to login page