feat: 完成權限管理系統、統一頁面標題樣式與表格對齊規範
This commit is contained in:
19
resources/js/types/global.d.ts
vendored
19
resources/js/types/global.d.ts
vendored
@@ -1,6 +1,25 @@
|
||||
import { AxiosInstance } from 'axios';
|
||||
import { route as routeFn } from 'ziggy-js';
|
||||
|
||||
export interface AuthUser {
|
||||
id: number;
|
||||
name: string;
|
||||
email: string;
|
||||
username?: string;
|
||||
roles: string[];
|
||||
permissions: string[];
|
||||
}
|
||||
|
||||
export interface PageProps {
|
||||
auth: {
|
||||
user: AuthUser | null;
|
||||
};
|
||||
flash: {
|
||||
success?: string;
|
||||
error?: string;
|
||||
};
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
axios: AxiosInstance;
|
||||
|
||||
Reference in New Issue
Block a user