| | |
| | | 删除案例 |
| | | </button> --> |
| | | </view> |
| | | |
| | | <!-- <view v-if="showHomeButton" class="home-btn" @click="goHome">首页</view> --> |
| | | <!-- 加载状态 --> |
| | | <u-loading-icon v-if="loading" :show="loading" text="加载中..." /> |
| | | </view> |
| | |
| | | import { ref, computed, onMounted } from "vue"; |
| | | import { onLoad } from "@dcloudio/uni-app"; |
| | | import { useDict } from "@/utils/dict"; |
| | | |
| | | import { useHomeButton } from "@/stores/useHomeButton"; |
| | | const { showHomeButton, checkAutoLogin, goHome } = useHomeButton(); |
| | | // 字典数据 |
| | | const dict = ref({}); |
| | | |
| | |
| | | }); |
| | | |
| | | onLoad(async (options) => { |
| | | checkAutoLogin(options); |
| | | if (options.id) { |
| | | caseId.value = options.id; |
| | | // 获取字典数据 |
| | |
| | | |
| | | // 返回 |
| | | const goBack = () => { |
| | | uni.navigateBack(); |
| | | if (showHomeButton) { |
| | | uni.switchTab({ url: "/pages/index/index" }); |
| | | } else { |
| | | uni.navigateBack(); |
| | | } |
| | | }; |
| | | |
| | | // 编辑案例 |