WXL
11 小时以前 05c363fdd7ab04e3bd9a753e2c5d5bfff04d681c
pages/case/CaseInfo.vue
@@ -392,7 +392,7 @@
        删除案例
      </button> -->
    </view>
    <!-- <view v-if="showHomeButton" class="home-btn" @click="goHome">首页</view> -->
    <!-- 加载状态 -->
    <u-loading-icon v-if="loading" :show="loading" text="加载中..." />
  </view>
@@ -402,7 +402,8 @@
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({});
@@ -435,6 +436,7 @@
});
onLoad(async (options) => {
  checkAutoLogin(options);
  if (options.id) {
    caseId.value = options.id;
    // 获取字典数据
@@ -629,7 +631,11 @@
// 返回
const goBack = () => {
  uni.navigateBack();
  if (showHomeButton) {
    uni.switchTab({ url: "/pages/index/index" });
  } else {
    uni.navigateBack();
  }
};
// 编辑案例