mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-19 08:39:56 +00:00
update
This commit is contained in:
parent
9a805143c6
commit
cb93e4e00b
6 changed files with 11 additions and 8 deletions
src
router
views
|
@ -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',
|
||||
};
|
||||
|
|
|
@ -13,7 +13,7 @@ const router = createRouter({
|
|||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect: 'dashboard/workplace',
|
||||
redirect: 'chirp/base',
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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() => {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue