开发模式显示复制token

This commit is contained in:
不做码农 2023-05-09 19:54:10 +08:00
parent bce4daa01d
commit af5991d9a6

View File

@ -31,7 +31,7 @@
<el-dropdown-item command="setLayout">
<span>{{ $t('layout.layoutSetting') }}</span>
</el-dropdown-item>
<el-dropdown-item command="copyToken">
<el-dropdown-item command="copyToken" v-if="dev">
<span>复制token</span>
</el-dropdown-item>
<el-dropdown-item divided command="logout">
@ -70,7 +70,7 @@ const sideTheme = computed(() => settingsStore.sideTheme)
function toggleSideBar() {
appStore.toggleSideBar()
}
const dev = ref(import.meta.env.DEV)
function handleCommand(command) {
switch (command) {
case 'setLayout':