fix:模板为空,报错处理

pull/8/head
kele 2023-03-27 16:56:48 +08:00
parent 5319e80fdd
commit 276e25ef35
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template>
<view>
<view v-if="template">
<s-layout
title="首页"
navbar="custom"
@ -26,7 +26,7 @@
// tabBar
uni.hideTabBar();
const template = computed(() => sheep.$store('app').template.home);
const template = computed(() => sheep.$store('app').template?.home);
onLoad((options) => {
// #ifdef MP