1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-19 08:39:56 +00:00
This commit is contained in:
Silent YANG 2024-01-27 15:45:48 +08:00
parent 9a805143c6
commit cb93e4e00b
6 changed files with 11 additions and 8 deletions
src
router
views
list/card
not-found

View file

@ -14,5 +14,5 @@ export const DEFAULT_ROUTE_NAME = 'Workplace';
export const DEFAULT_ROUTE = {
title: 'menu.dashboard.workplace',
name: DEFAULT_ROUTE_NAME,
fullPath: '/dashboard/workplace',
fullPath: '/chirp/base',
};

View file

@ -13,7 +13,7 @@ const router = createRouter({
routes: [
{
path: '/',
redirect: 'dashboard/workplace',
redirect: 'chirp/base',
},
{
path: '/login',

View file

@ -2,7 +2,7 @@ import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';
const DASHBOARD: AppRouteRecordRaw = {
path: '/dashboard',
path: '/chirp',
name: 'dashboard',
component: DEFAULT_LAYOUT,
meta: {
@ -13,7 +13,7 @@ const DASHBOARD: AppRouteRecordRaw = {
},
children: [
{
path: 'workplace',
path: 'base',
name: 'Workplace',
component: () => import('@/views/dashboard/workplace/index.vue'),
meta: {

View file

@ -2,7 +2,7 @@ import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';
const LIST: AppRouteRecordRaw = {
path: '/list',
path: '/tool',
name: 'list',
component: DEFAULT_LAYOUT,
meta: {
@ -23,7 +23,7 @@ const LIST: AppRouteRecordRaw = {
// },
// },
{
path: 'card',
path: 'backup',
name: 'Card',
component: () => import('@/views/list/card/index.vue'),
meta: {

View file

@ -36,10 +36,12 @@ const state = reactive({
})
const checkEeprom = async () => {
if(appStore.connectState != true){alert('请先连接手台!'); return;};
await check_eeprom();
}
const backup = async() => {
if(appStore.connectState != true){alert('请先连接手台!'); return;};
let _max = 0x2000;
switch(state.eepromType){
case "1":
@ -85,6 +87,7 @@ const backup = async() => {
}
const restore = async() => {
if(appStore.connectState != true){alert('请先连接手台!'); return;};
const input = document.createElement('input');
input.type = 'file';
input.onchange = async() => {

View file

@ -1,8 +1,8 @@
<template>
<div class="content">
<a-result class="result" status="404" :subtitle="'not found'"> </a-result>
<a-result class="result" status="404" :subtitle="'找不到网页'"> </a-result>
<div class="operation-row">
<a-button key="back" type="primary" @click="back"> back </a-button>
<a-button key="back" type="primary" @click="back"> 返回 </a-button>
</div>
</div>
</template>