【优化】代码格式优化

This commit is contained in:
zhuoda
2023-07-26 21:23:41 +08:00
parent 018bbf0993
commit 8dc663d885
8 changed files with 16 additions and 1556 deletions

View File

@@ -10,7 +10,7 @@
import * as antIcons from '@ant-design/icons-vue';
import Antd, { message } from 'ant-design-vue';
import lodash from 'lodash';
import { createApp, nextTick } from 'vue';
import { createApp } from 'vue';
import JsonViewer from 'vue3-json-viewer';
import 'vue3-json-viewer/dist/index.css';
import App from './App.vue';
@@ -26,8 +26,6 @@ import { store } from '/@/store/index';
import { useUserStore } from '/@/store/modules/system/user';
import '/@/theme/index.less';
import { getTokenFromCookie } from '/@/utils/cookie-util';
import { useRouter } from 'vue-router';
import { PAGE_PATH_LOGIN } from '/@/constants/common-const';
/*
* -------------------- ※ 着重 解释说明下main.js的初始化逻辑 begin ※ --------------------
@@ -45,8 +43,6 @@ import { PAGE_PATH_LOGIN } from '/@/constants/common-const';
/**
* 获取用户信息和用户权限对应的路由,构建动态路由
*/
const realRouter = useRouter();
async function getLoginInfo() {
try {
//获取登录用户信息
@@ -61,7 +57,6 @@ async function getLoginInfo() {
message.error(e);
smartSentry.captureError(e);
initVue();
router.push({ path: PAGE_PATH_LOGIN });
}
}

View File

@@ -1,26 +1,26 @@
<!--
* 图标 选择
*
* @Author: 1024创新实验室-主任卓大
* @Date: 2022-09-01 23:14:49
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
* 图标 选择
*
* @Author: 1024创新实验室-主任卓大
* @Date: 2022-09-01 23:14:49
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<div>
<a-popover v-model:visible="visible" placement="bottomLeft" trigger="click">
<template #title>
<a-form-item>
<a-form-item-rest>
<a-radio-group @change="updateSelectIconArray" v-model:value="iconStyle" style="margin: 8px">
<a-radio-button value="outlined">线框风格</a-radio-button>
<a-radio-button value="filled">实底风格</a-radio-button>
<a-radio-button value="twoTone">双色风格</a-radio-button>
</a-radio-group>
</a-form-item>
<a-form-item>
</a-form-item-rest>
<a-form-item-rest>
<a-input-search v-model:value="searchValue" placeholder="输入英文关键词进行搜索" @change="updateSelectIconArray" />
</a-form-item>
</a-form-item-rest>
</template>
<template #content>

View File

@@ -22,7 +22,7 @@
<a-row class="detail-info">
<a-col :span="12"> 用户id{{ detail.operateUserId }}</a-col>
<a-col :span="12"> 用户名称 {{ detail.operateUserName }}</a-col>
<a-col :span="24"> 请求内容 {{ detail.module }} - {{ detail.content }}</a-col>
<a-col :span="12"> 请求内容 {{ detail.module }} - {{ detail.content }}</a-col>
</a-row>
</a-col>
<a-col :span="8">

View File

@@ -8,7 +8,7 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-result status="403" title="对不起,您没有权限访问此内容">
<a-result status="404" title="对不起,您没有权限访问此内容">
<template #extra>
<a-button type="primary" @click="goHome">返回首页</a-button>
</template>

View File

@@ -1,5 +1,5 @@
<!--
* 404 不存在 页面
* 403 不存在 页面
*
* @Author: 1024创新实验室-主任卓大
* @Date: 2022-08-08 20:46:18
@@ -8,7 +8,7 @@
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
-->
<template>
<a-result status="404" title="对不起,您访问的内容不存在!">
<a-result status="403" title="对不起,您访问的内容不存在!">
<template #extra>
<a-button type="primary" @click="goHome">返回首页</a-button>
</template>