创建站点默认主题

This commit is contained in:
谢思 2023-10-27 11:00:57 +08:00
parent 76be09ae29
commit b246bda237
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@
},
"scripts": {
"start": "node --max_old_space_size=15360 scripts/start.js",
"build": "cross-env NODE_ENV=production node --max_old_space_size=15360 scripts/build.js",
"build": "set NODE_ENV=production && node --max_old_space_size=15360 scripts/build.js",
"build:dll": "webpack --config=./config/webpack.dll.config.js",
"test-build": "cross-env NODE_ENV=testBuild node --max_old_space_size=15360 scripts/build.js",
"pre-build": "NODE_ENV=preBuild node --max_old_space_size=15360 scripts/build.js",

View File

@ -24,7 +24,7 @@ function CreateSite(props) {
axios.get(`/site_pages/themes.json`, {params: {language_frame: language}}).then(res=>{
if(res && res.status === 200){
setThemes(res.data.themes);
// setTheme(res.data.themes[0])
setTheme(res.data.themes[0]);
}
})
}, [language])