Merge branch 'fronted-end' of https://gitee.com/objs/mayfly-go into fronted-end

This commit is contained in:
96607667.zh
2021-12-30 14:52:11 +08:00
2 changed files with 2 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ const router = createRouter({
// 前端控制路由:初始化方法,防止刷新时丢失
export function initAllFun() {
// NextLoading.start(); // 界面 loading 动画开始执行
NextLoading.start(); // 界面 loading 动画开始执行
const token = getSession('token'); // 获取浏览器缓存 token 值
if (!token) {
// 无 token 停止执行下一步
@@ -37,7 +37,7 @@ export function initAllFun() {
// 后端控制路由:模拟执行路由数据初始化
export function initBackEndControlRoutesFun() {
// NextLoading.start(); // 界面 loading 动画开始执行
NextLoading.start(); // 界面 loading 动画开始执行
const token = getSession('token'); // 获取浏览器缓存 token 值
if (!token) {
// 无 token 停止执行下一步

View File

@@ -6,7 +6,6 @@ import (
"mayfly-go/base/middleware"
common_index_router "mayfly-go/server/common/router"
devops_router "mayfly-go/server/devops/router"
gw_router "mayfly-go/server/gateway/router"
sys_router "mayfly-go/server/sys/router"
"net/http"
@@ -61,8 +60,6 @@ func InitRouter() *gin.Engine {
devops_router.InitMachineRouter(api)
devops_router.InitMachineScriptRouter(api)
devops_router.InitMachineFileRouter(api)
gw_router.InitServiceRouter(api)
}
return router