feat(web): add Ant workspace tabs and harden page chrome
Persist workspace tabs in the app shell with Ant Design styling aligned to the desktop top bar, and fix tab bar layout flicker on select. Add shared PageHeader components, query helpers, and missing header state across CRM views; improve mobile shell layout and Vite HMR stability on Windows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+17
-1
@@ -14,7 +14,23 @@ export default defineConfig(({ mode }) => {
|
||||
console.log(`[montact] UI → ${apiTarget}${usingLocalApi ? ' (API لوکال)' : ' (سرور اصلی)'}`);
|
||||
|
||||
return {
|
||||
plugins: [vue(), tailwindcss()],
|
||||
plugins: [
|
||||
vue(),
|
||||
tailwindcss(),
|
||||
{
|
||||
name: 'survive-windows-watcher',
|
||||
configureServer(server) {
|
||||
// On Windows, fs.watch throws EBUSY when a file is locked (brand SVGs,
|
||||
// antivirus). An unhandled watcher "error" kills Vite and the page
|
||||
// stays white because nothing is left to serve a refresh.
|
||||
server.watcher.on('error', (err: NodeJS.ErrnoException) => {
|
||||
console.error(
|
||||
`[vite] watcher ${err?.code || 'error'} ignored: ${err?.message || err}`,
|
||||
);
|
||||
});
|
||||
},
|
||||
},
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
|
||||
Reference in New Issue
Block a user