fix: change font
mws-frontend / build (push) Successful in 2m49s
mws-frontend / push (push) Successful in 24s
mws-frontend / deploy (push) Successful in 15s

This commit is contained in:
2026-09-22 22:35:57 +07:00
parent a01cd6f1bf
commit 87b870a1ad
6 changed files with 74 additions and 78 deletions
+5 -3
View File
@@ -17,9 +17,11 @@ function landingPath(): string {
}
function fallbackLocation() {
const auth = useAuthStore()
const last = localStorage.getItem('mws_last_project')
if (last) return { name: 'tasks-board', params: { id: last } }
return landingPath()
const canOpenTasks = !auth.menuLoaded || auth.canView('tasks')
if (last && canOpenTasks) return { name: 'tasks-board', params: { id: last } }
return { name: 'select-project' }
}
const router = createRouter({
@@ -91,7 +93,7 @@ router.beforeEach(async (to) => {
if (to.meta.adminOnly && !auth.isAdmin) {
return fallbackLocation()
}
if (to.meta.screenKey && !auth.canView(to.meta.screenKey)) {
if (to.meta.screenKey && auth.menuLoaded && !auth.canView(to.meta.screenKey)) {
return fallbackLocation()
}
})
+1 -2
View File
@@ -44,10 +44,9 @@ export const useAuthStore = defineStore('auth', {
async loadMenu() {
try {
this.menu = await getMenu()
this.menuLoaded = true
} catch {
this.menu = []
} finally {
this.menuLoaded = true
}
},
async fetchProfile() {
+2 -3
View File
@@ -3,9 +3,8 @@
@custom-variant dark (&:where(.app-dark, .app-dark *));
@theme {
/* Display = Bricolage Grotesque (characterful grotesque), body = IBM Plex Sans */
--font-sans: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
--font-display: 'Bricolage Grotesque', 'IBM Plex Sans', Helvetica, Arial, sans-serif;
--font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
--font-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
/* Blurple — brand primary, remaps every indigo-* utility */
--color-indigo-50: #eef0fe;