chore(ci): 移除 Woodpecker CI 配置,全面采用 Jenkins
- 删除 .woodpecker.yml - 删除 .woodpecker-e2e.yml - 删除 .woodpecker-test-suite.yml
This commit is contained in:
@@ -5,7 +5,7 @@ import MenuItem from '@/components/MenuItem.vue'
|
||||
describe('MenuItem 组件', () => {
|
||||
it('应该正确接收菜单项 props', () => {
|
||||
const menu = {
|
||||
id: 1,
|
||||
id: '1',
|
||||
name: '仪表盘',
|
||||
path: '/dashboard',
|
||||
icon: 'Odometer',
|
||||
@@ -34,14 +34,14 @@ describe('MenuItem 组件', () => {
|
||||
|
||||
it('应该正确处理有子菜单的菜单项', () => {
|
||||
const menu = {
|
||||
id: 2,
|
||||
id: '2',
|
||||
name: '系统管理',
|
||||
path: '/system',
|
||||
icon: 'Setting',
|
||||
sort: 2,
|
||||
children: [
|
||||
{
|
||||
id: 3,
|
||||
id: '3',
|
||||
name: '用户管理',
|
||||
path: '/users',
|
||||
sort: 1
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('Permission Store', () => {
|
||||
permissions: ['user:read', 'user:delete'],
|
||||
menus: [
|
||||
{
|
||||
id: 1,
|
||||
id: '1',
|
||||
name: '仪表盘',
|
||||
path: '/dashboard',
|
||||
icon: 'Odometer',
|
||||
@@ -118,7 +118,7 @@ describe('Permission Store', () => {
|
||||
permissions: ['user:read'],
|
||||
menus: [
|
||||
{
|
||||
id: 1,
|
||||
id: '1',
|
||||
name: '仪表盘',
|
||||
path: '/dashboard',
|
||||
sort: 1
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { usePermissionStore } from '@/stores/permission'
|
||||
|
||||
export interface PermissionMapping {
|
||||
[key: string]: string | string[]
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export function generateSignature(
|
||||
export function generateSignatureHeaders(
|
||||
method: string,
|
||||
url: string,
|
||||
body?: any
|
||||
_body?: any
|
||||
): SignatureHeaders {
|
||||
const timestamp = Date.now()
|
||||
const nonce = generateNonce()
|
||||
|
||||
@@ -246,7 +246,7 @@ const sortInfo = reactive({
|
||||
const modalVisible = ref(false)
|
||||
const modalTitle = ref('')
|
||||
const formRef = ref()
|
||||
const formState = reactive<CreateUserRequest & { id?: number; status?: UserStatus }>({
|
||||
const formState = reactive<CreateUserRequest & { id?: string; status?: UserStatus }>({
|
||||
username: '',
|
||||
password: '',
|
||||
nickname: '',
|
||||
@@ -414,7 +414,7 @@ const handleAssignRoles = async (row: User) => {
|
||||
try {
|
||||
const roles = await roleApi.getAll()
|
||||
allRoles.value = roles.map((role: Role) => ({
|
||||
key: role.id,
|
||||
key: String(role.id),
|
||||
label: role.roleName
|
||||
}))
|
||||
selectedRoles.value = row.roles || []
|
||||
|
||||
Reference in New Issue
Block a user