feat(projects): 细节完善、迁移页面

This commit is contained in:
Soybean
2022-01-20 21:24:01 +08:00
parent 28efbdbc70
commit ce531ce5dd
26 changed files with 1114 additions and 225 deletions

View File

@ -1,5 +1,5 @@
<template>
<div ref="tabRef" class="flex items-end h-full" :class="[isChromeMode ? 'flex items-end' : 'flex-y-center']">
<div ref="tabRef" class="h-full" :class="[isChromeMode ? 'flex items-end' : 'flex-y-center']">
<component
:is="activeComponent"
v-for="(item, index) in tab.tabs"

View File

@ -16,7 +16,7 @@ import { useThemeStore } from '@/store';
const theme = useThemeStore();
const copyRef = ref<HTMLElement | null>(null);
const copyRef = ref<HTMLElement>();
const dataClipboardText = ref(getClipboardText());
function getClipboardText() {
@ -29,7 +29,8 @@ function handleResetConfig() {
}
function clipboardEventListener() {
const copy = new Clipboard(copyRef.value!);
if (!copyRef.value) return;
const copy = new Clipboard(copyRef.value);
copy.on('success', () => {
window.$dialog?.success({
title: '操作成功',

View File

@ -1,4 +1,4 @@
import BasicLayout from './BasicLayout/index.vue';
import BlankLayout from './BlankLayout/index.vue';
const BasicLayout = () => import('./BasicLayout/index.vue');
const BlankLayout = () => import('./BlankLayout/index.vue');
export { BasicLayout, BlankLayout };