🔨 更新 spring 配置描述文件.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import qs from 'query-string';
|
||||
|
||||
type PreferenceType = 'SYSTEM' | 'TERMINAL'
|
||||
export type PreferenceType = 'SYSTEM' | 'TERMINAL'
|
||||
|
||||
/**
|
||||
* 用户偏好更新请求-单个
|
||||
|
||||
12
orion-visor-ui/src/store/modules/cache/index.ts
vendored
12
orion-visor-ui/src/store/modules/cache/index.ts
vendored
@@ -2,6 +2,8 @@ import type { CacheState } from './types';
|
||||
import type { AxiosResponse } from 'axios';
|
||||
import type { TagType } from '@/api/meta/tag';
|
||||
import { getTagList } from '@/api/meta/tag';
|
||||
import type { PreferenceType } from '@/api/user/preference';
|
||||
import { getPreference } from '@/api/user/preference';
|
||||
import { defineStore } from 'pinia';
|
||||
import { getUserList } from '@/api/user/user';
|
||||
import { getRoleList } from '@/api/user/role';
|
||||
@@ -131,5 +133,15 @@ export default defineStore('cache', {
|
||||
return await this.load('execJob', getExecJobList, force);
|
||||
},
|
||||
|
||||
// 加载偏好
|
||||
async loadPreference<T>(type: PreferenceType, force = false) {
|
||||
return await this.load(`preference_${type}`, () => getPreference<T>(type), force);
|
||||
},
|
||||
|
||||
// 加载偏好项
|
||||
async loadPreferenceItem<T>(type: PreferenceType, item: string, force = false) {
|
||||
return await this.load(`preference_${type}_${item}`, () => getPreference<T>(type, [item]), force);
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -3,6 +3,13 @@ import { dateFormat } from '@/utils';
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: 'id',
|
||||
dataIndex: 'id',
|
||||
slotName: 'id',
|
||||
width: 100,
|
||||
align: 'left',
|
||||
fixed: 'left',
|
||||
}, {
|
||||
title: '连接用户',
|
||||
dataIndex: 'username',
|
||||
slotName: 'username',
|
||||
|
||||
@@ -3,6 +3,13 @@ import { dateFormat } from '@/utils';
|
||||
|
||||
const columns = [
|
||||
{
|
||||
title: 'id',
|
||||
dataIndex: 'id',
|
||||
slotName: 'id',
|
||||
width: 100,
|
||||
align: 'left',
|
||||
fixed: 'left',
|
||||
}, {
|
||||
title: '操作用户',
|
||||
dataIndex: 'username',
|
||||
slotName: 'username',
|
||||
|
||||
Reference in New Issue
Block a user