refactor(token): 优化Token管理界面和重构工作流
This commit is contained in:
@@ -4,11 +4,18 @@ import {ref, watch} from 'vue'
|
||||
import axios from "@/axios.ts";
|
||||
import {useRoute} from "vue-router"
|
||||
|
||||
interface optionsType {
|
||||
value: string
|
||||
}
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
const result = ref()
|
||||
const value = ref('')
|
||||
const options = ref([] as optionsType[])
|
||||
value.value = useCounterStore().token
|
||||
const deleteSpecifyRedisVisible = ref(false)
|
||||
const inputSpecifyRedis = ref('')
|
||||
|
||||
|
||||
const getInfo = () => {
|
||||
if (value.value != '') {
|
||||
@@ -53,12 +60,6 @@ watch(value, (newValue) => {
|
||||
getInfo()
|
||||
})
|
||||
|
||||
interface optionsType {
|
||||
value: string
|
||||
}
|
||||
|
||||
const options = ref([] as optionsType[])
|
||||
value.value = useCounterStore().token
|
||||
|
||||
axios.get('/api/token').then(res => {
|
||||
if (res.status == 200) {
|
||||
@@ -68,9 +69,6 @@ axios.get('/api/token').then(res => {
|
||||
}
|
||||
})
|
||||
|
||||
const deleteSpecifyRedisVisible = ref(false)
|
||||
const inputSpecifyRedis = ref('')
|
||||
|
||||
const deleteSpecifyRedis = () => {
|
||||
axios.delete('/api/token/info', {
|
||||
params: {
|
||||
@@ -110,8 +108,8 @@ const deleteSpecifyRedis = () => {
|
||||
>
|
||||
<el-descriptions-item label="去重对象">{{ result?.dedup_object }}</el-descriptions-item>
|
||||
<el-descriptions-item label="上传数据格式">{{ result?.data_format }}</el-descriptions-item>
|
||||
<el-descriptions-item label="去重记录值">{{ result?.dedup_items_number }}</el-descriptions-item>
|
||||
<el-descriptions-item label="Redis中数据条数">{{ result?.cache_list_number }}</el-descriptions-item>
|
||||
<el-descriptions-item label="去重参考值数量">{{ result?.dedup_items_number }}</el-descriptions-item>
|
||||
<el-descriptions-item label="原始数据数量">{{ result?.cache_list_number }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
||||
<p><b>管理</b></p>
|
||||
|
Reference in New Issue
Block a user