feat: eslint

This commit is contained in:
pk5ls20 committed 2024-11-25 20:02:50 +08:00
1 parent 7fba9960bf
commit 4be821137d
13 files changed
+273 -233

No files matched your search

+2 -5
View File
@@ -20,7 +20,6 @@ interface MenuItem {
route: string;
}
const menuItems = ref<MenuItem[]>([
{ value: 'item1', icon: 'dashboard', label: '基础信息', route: '/dashboard/basic-info' },
{ value: 'item3', icon: 'wifi-1', label: '网络配置', route: '/dashboard/network-config' },
@@ -28,9 +27,9 @@ const menuItems = ref<MenuItem[]>([
{ value: 'item5', icon: 'system-log', label: '日志查看', route: '/dashboard/log-view' },
{ value: 'item6', icon: 'info-circle', label: '关于我们', route: '/dashboard/about-us' },
]);
const menuRef=ref<any>(null)
const menuRef = ref<any>(null);
emitter.on('sendMenu', (event) => {
emitter.emit('sendWidth',menuRef.value.offsetWidth);
emitter.emit('sendWidth', menuRef.value.offsetWidth);
localStorage.setItem('menuWidth', menuRef.value.offsetWidth);
});
onMounted(() => {
@@ -39,7 +38,6 @@ onMounted(() => {
</script>
<style scoped>
.dashboard-container {
display: flex;
flex-direction: row;
@@ -52,7 +50,6 @@ onMounted(() => {
z-index: 2;
}
@media (max-width: 768px) {
.content {
padding: 10px;