fix: global css miss
This commit is contained in:
+5
-5
@@ -19,11 +19,11 @@ export default defineConfig({
|
||||
src: `/js/umi.${t}.js`
|
||||
}
|
||||
],
|
||||
cssLoader: {
|
||||
modules: {
|
||||
localIdentName: 'css/[name]__[local]___[hash:base64:5]'
|
||||
}
|
||||
},
|
||||
// cssLoader: {
|
||||
// modules: {
|
||||
// localIdentName: 'css/[name]__[local]___[hash:base64:5]'
|
||||
// }
|
||||
// },
|
||||
chainWebpack(config: any) {
|
||||
config.plugin('mini-css-extract-plugin').tap((args: any) => [
|
||||
{
|
||||
|
||||
+8
-8
@@ -23,14 +23,14 @@ export async function getInitialState() {
|
||||
return undefined;
|
||||
};
|
||||
|
||||
if (![loginPath].includes(location.pathname)) {
|
||||
const currentUser = await fetchUserInfo();
|
||||
return {
|
||||
fetchUserInfo,
|
||||
name: 'admin',
|
||||
...currentUser
|
||||
};
|
||||
}
|
||||
// if (![loginPath].includes(location.pathname)) {
|
||||
// const currentUser = await fetchUserInfo();
|
||||
// return {
|
||||
// fetchUserInfo,
|
||||
// name: 'admin',
|
||||
// ...currentUser
|
||||
// };
|
||||
// }
|
||||
return {
|
||||
fetchUserInfo,
|
||||
name: 'admin'
|
||||
|
||||
Reference in New Issue
Block a user