feat:修改版本号

This commit is contained in:
lixg
2023-02-28 14:21:11 +08:00
parent 3df6ca8165
commit 014f7fdccf
3 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
import { getCookie } from "@/api/utils"; import { getCookie } from "@/api/utils";
import { USER_INFO } from "@/api/api"; import { USER_INFO } from "@/api/api";
console.log("版本1.2.8------------"); console.log("版本1.2.10------------");
const store = useStore(); const store = useStore();
const router = useRouter(); const router = useRouter();

View File

@@ -107,7 +107,7 @@ watch(data, () => {
// "import.meta.env.VITE_BOE_BASE_URL", // "import.meta.env.VITE_BOE_BASE_URL",
// import.meta.env.VITE_BOE_BASE_URL // import.meta.env.VITE_BOE_BASE_URL
// ); // );
if (data.value && data.value.list) { if (data && data.value && data.value.list) {
data.value.list.reverse(); data.value.list.reverse();
current.value = data.value.list.findIndex( current.value = data.value.list.findIndex(
(e) => e.id === data.value.currentChapterId (e) => e.id === data.value.currentChapterId

View File

@@ -182,8 +182,8 @@ watch(
{ deep: true } { deep: true }
); );
watch(data, () => { watch(data, () => {
console.log("data.value.projectId", data.value.projectId); console.log("data.value.projectId", data.value);
if (!data.value.projectId) { if (data && data.value && !data.value.projectId) {
ElMessage.warning("您不是此项目的学员"); ElMessage.warning("您不是此项目的学员");
window.open( window.open(
import.meta.env.VITE_BOE_BASE_URL + "/mobile/pages/index/index", import.meta.env.VITE_BOE_BASE_URL + "/mobile/pages/index/index",