开发模式显示复制token
This commit is contained in:
parent
bce4daa01d
commit
af5991d9a6
@ -31,7 +31,7 @@
|
|||||||
<el-dropdown-item command="setLayout">
|
<el-dropdown-item command="setLayout">
|
||||||
<span>{{ $t('layout.layoutSetting') }}</span>
|
<span>{{ $t('layout.layoutSetting') }}</span>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item command="copyToken">
|
<el-dropdown-item command="copyToken" v-if="dev">
|
||||||
<span>复制token</span>
|
<span>复制token</span>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item divided command="logout">
|
<el-dropdown-item divided command="logout">
|
||||||
@ -70,7 +70,7 @@ const sideTheme = computed(() => settingsStore.sideTheme)
|
|||||||
function toggleSideBar() {
|
function toggleSideBar() {
|
||||||
appStore.toggleSideBar()
|
appStore.toggleSideBar()
|
||||||
}
|
}
|
||||||
|
const dev = ref(import.meta.env.DEV)
|
||||||
function handleCommand(command) {
|
function handleCommand(command) {
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case 'setLayout':
|
case 'setLayout':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user