整理升级依赖包

This commit is contained in:
gotoeasy 2022-12-18 18:19:51 +08:00
parent 88f89bf45f
commit 9e66e3591d
9 changed files with 403 additions and 417 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8"/>
<link rel="icon" href="/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>日志中心</title>
<title>日志中心GLC</title>
</head>
<body>
@ -40,16 +40,6 @@
.main{
background-color:#edf0f3;
}
/* html.dark .el-card {
--el-card-bg-color: var(--el-bg-color-overlay);
}
html.dark .main{
background-color: var(--el-bg-color-overlay);
}
html.dark .database .active,html.dark .database .item:hover{
background-color:#262727;
} */
ul.el-menu--collapse{
width: 48px;

View File

@ -1,7 +1,7 @@
{
"name": "web",
"private": true,
"version": "0.0.0",
"version": "0.1.0",
"scripts": {
"dev": "vite",
"build": "vite build",
@ -10,15 +10,14 @@
"dependencies": {
"@element-plus/icons-vue": "^1.1.4",
"@vueuse/core": "^8.4.2",
"axios": "^0.27.2",
"axios": "^1.2.1",
"element-plus": "^2.1.11",
"sass": "^1.51.0",
"vue": "^3.2.25",
"vue-json-viewer": "3",
"vue-router": "^4.0.15"
"vue": "^3.2.45",
"vue-router": "^4.0.16"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.2.0",
"vite": "^2.8.0"
"@vitejs/plugin-vue": "^2.2.4",
"vite": "^2.8.6"
}
}

View File

@ -1,4 +1,3 @@
<template>
<el-container>
<el-container>
@ -94,7 +93,7 @@ export default {
this.isLogin = true;
this.username = '';
this.password = '';
this.$router.push({name:'dashboard'})
this.$router.push({name:'search'})
}else{
this.$message({type: 'error', message: res.message});
}

View File

@ -1,15 +1,4 @@
<template>
<!-- <div style="text-align:center;width: 200px;color:white" v-if="!isCollapsed">
<svg t="1652075159972" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
p-id="6654" width="50" height="50"
>
<path
d="M501.76 402.432c-39.936 9.216-67.584 16.384-108.544 28.672-9.216 1.024-9.216 4.096-19.456-6.144-9.216-12.288-16.384-16.384-30.72-24.576-39.936-19.456-79.872-13.312-116.736 9.216-44.032 28.672-65.536 68.608-65.536 120.832 0 50.176 36.864 93.184 87.04 101.376 44.032 6.144 79.872-9.216 108.544-43.008 6.144-7.168 12.288-15.36 16.384-22.528H248.832c-13.312 0-16.384-7.168-12.288-19.456 7.168-19.456 22.528-52.224 31.744-68.608 1.024-4.096 6.144-9.216 15.36-9.216h234.496c1.024 18.432 1.024 34.816-1.024 52.224-7.168 46.08-24.576 89.088-52.224 125.952-46.08 59.392-105.472 98.304-182.272 108.544-61.44 7.168-120.832-4.096-171.008-43.008-50.176-37.888-73.728-83.968-81.92-143.36-7.168-68.608 12.288-133.12 53.248-186.368 46.08-59.392 105.472-96.256 179.2-110.592 59.392-12.288 117.76-4.096 169.984 30.72 34.816 22.528 58.368 52.224 73.728 90.112 6.144 5.12 3.072 8.192-4.096 9.216z m211.968 354.304c-58.368-1.024-111.616-16.384-156.672-56.32-37.888-31.744-61.44-73.728-68.608-123.904-12.288-71.68 7.168-138.24 52.224-192.512 46.08-61.44 102.4-93.184 179.2-105.472 65.536-12.288 126.976-6.144 182.272 31.744 50.176 34.816 80.896 80.896 90.112 142.336 12.288 87.04-13.312 156.672-73.728 216.064-43.008 43.008-95.232 68.608-153.6 80.896-18.432 5.12-35.84 5.12-51.2 7.168z m150.528-259.072c0-7.168 0-15.36-1.024-21.504-12.288-64.512-68.608-98.304-132.096-83.968-59.392 13.312-98.304 50.176-111.616 111.616-12.288 50.176 13.312 101.376 58.368 120.832 34.816 15.36 68.608 13.312 104.448-4.096 53.248-26.624 80.896-66.56 81.92-122.88z"
fill="#2DBCAF" p-id="6655"
></path>
</svg>
<h1 style="margin-top:0px;">GoFound Admin</h1>
</div> -->
<el-menu
:default-active="active+''"
:collapse="isCollapsed"
@ -20,9 +9,8 @@
>
<router-link v-for="(item,index) in menus" :to="{name:item.name}" :key="item.name">
<el-menu-item :index="index">
<el-menu-item v-if="!item.hidden" :index="index">
<Icon :name="item.icon" :color="item.color" class="side-menu-icon"/>
<!-- <span v-text="item.label"></span> -->
</el-menu-item>
</router-link>
@ -59,11 +47,6 @@ export default {
return active
},
},
methods: {
openDocument() {
window.open('https://gitee.com/tompeppa/gofound')
},
},
}
</script>

View File

@ -3,14 +3,21 @@ import { Coin, DataAnalysis, DataLine, Discount, Document, Search, Setting } fro
const menus = [
{
path: '/',
name: 'dashboard',
redirect: '/glc/search',
hidden: true,
},{
path: '/glc',
redirect: '/glc/search',
hidden: true,
},{
path: '/glc/search',
name: 'search',
icon: Search,
label: '日志检索',
color: '#0081dd',
component: () => import('./views/dashboard.vue'),
},
{
path: '/',
component: () => import('./views/search.vue'),
},{
path: '/glc/storages',
name: 'storages',
icon: Coin,
label: '日志仓管理',

View File

@ -1,9 +1,9 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import menus from './menus'
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(),
routes: menus
})

View File

@ -2,7 +2,7 @@
<el-container>
<el-main style="padding-top:0">
<div id="dashboard">
<div>
<el-card>
<template #header>
@ -69,13 +69,12 @@
<script>
import api from '../api'
//import jsonViewer from 'vue-json-viewer'
import { ref } from 'vue'
const FixHeight = 215 // 177
export default {
name: 'dashboard',
// name: 'dashboard',
components: { },
data() {
return {

View File

@ -2,7 +2,7 @@
<el-container>
<el-main style="padding-top:0">
<div id="dashboard">
<div>
<el-card>
<template #header>
@ -33,13 +33,11 @@
</el-table>
<div class="header">
<div style="display:flex;justify-content:space-between;">
<div v-html="info" class="x-info"></div>
</div>
</div>
</el-card>
</div>
@ -49,12 +47,11 @@
<script>
import api from '../api'
//import jsonViewer from 'vue-json-viewer'
const FixHeight = 215 // 177
export default {
name: 'dashboard',
// name: 'dashboard',
components: { },
data() {
return {

File diff suppressed because it is too large Load Diff