判断对象是否存在

This commit is contained in:
ljqing 2023-02-02 18:53:50 +08:00
parent f44f60d038
commit 6e04641016
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,8 @@ export default defineComponent({
} }
const use_server_config = () => { const use_server_config = () => {
let server_conf = JSON.parse($store.state.fusion_configuration).options let server_conf = JSON.parse($store.state.fusion_configuration).options
model[0] = Number(server_conf.blending_grids_row) model[0] = server_conf.blending_grids_row ? Number(server_conf.blending_grids_row) : 20;
model[1] = Number(server_conf.blending_grids_column) model[1] = server_conf.blending_grids_column ? Number(server_conf.blending_grids_column) : 40;
color[0] = server_conf.blending_grids_line_color color[0] = server_conf.blending_grids_line_color
RowsColumns[0] = server_conf.blending_grids_show_row === "false" ? false : true RowsColumns[0] = server_conf.blending_grids_show_row === "false" ? false : true