创建站点默认主题
This commit is contained in:
parent
76be09ae29
commit
b246bda237
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in New Issue