This commit is contained in:
Silent YANG 2024-06-09 19:26:38 +08:00
parent a52f65cc5d
commit 7f531813f1
5 changed files with 8 additions and 5 deletions

View file

@ -2,7 +2,6 @@
<html lang="zh-cmn">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>K5Web</title>
<style>

View file

@ -153,6 +153,7 @@ export default {
'menu.cps.mdc': 'MDC Contact',
'cps.contact': 'Name',
'cps.mdcid': 'MDC ID',
'idea.diy': 'LOSEHU DIY',
...localeSettings,
...localeMessageBox,
...localeLogin,

View file

@ -153,6 +153,7 @@ export default {
'menu.cps.mdc': 'MDC 联系人',
'cps.contact': '联系人',
'cps.mdcid': 'MDC ID',
'idea.diy': '自定义萝卜固件',
...localeSettings,
...localeMessageBox,
...localeLogin,

View file

@ -37,7 +37,7 @@ const IDEA: AppRouteRecordRaw = {
name: 'ideaLosehu',
component: () => import('@/views/idea/losehu/index.vue'),
meta: {
locale: '自定义萝卜固件',
locale: 'idea.diy',
requiresAuth: true,
roles: ['*'],
},

View file

@ -1,9 +1,9 @@
<template>
<div class="container">
<Breadcrumb :items="[$t('menu.workshop'), '自定义萝卜固件']" />
<Breadcrumb :items="[$t('menu.workshop'), $t('idea.diy')]" />
<a-row :gutter="20" align="stretch">
<a-col :span="24">
<a-card class="general-card" title="自定义萝卜固件" :loading="loading">
<a-card class="general-card" :title="$t('idea.diy')" :loading="loading">
<t-space direction="vertical">
<a-radio-group v-for="item in state.showSort" v-model="state.flag[item]" type="button">
<a-radio v-for="subItem in state.disMatrix[item]" :value="subItem[0]"
@ -38,13 +38,15 @@ const state: {
flag: any,
disMatrix: any,
disName: any,
disEng: any,
showSort: any
} = reactive({
versions: [],
flag: [],
disMatrix: [],
disName: [],
showSort: []
showSort: [],
disEng: []
})
watch(() => [...state.flag], () => { updateMatrix() })