init
This commit is contained in:
23
frontend/superadmin/src/App.vue
Normal file
23
frontend/superadmin/src/App.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<header style="display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eee">
|
||||
<strong>Super Admin</strong>
|
||||
<router-link to="/">统计</router-link>
|
||||
<router-link to="/tenants">租户</router-link>
|
||||
<router-link to="/roles">角色</router-link>
|
||||
<span style="flex: 1"></span>
|
||||
<input v-model="token" placeholder="Bearer token(可选)" style="width: 320px" />
|
||||
<button @click="applyToken">应用</button>
|
||||
</header>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { setSuperToken } from './api'
|
||||
|
||||
const token = ref('')
|
||||
|
||||
function applyToken() {
|
||||
setSuperToken(token.value)
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user