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