xiebaomin 1 년 전
부모
커밋
9ba0a0b8bd
3개의 변경된 파일5개의 추가작업 그리고 9개의 파일을 삭제
  1. 2 2
      .env.development
  2. 1 5
      src/views/Database/components/context-share.vue
  3. 2 2
      src/views/Preview/index.vue

+ 2 - 2
.env.development

@@ -1,6 +1,6 @@
 VITE_ENV = 'development'
 VITE_ENV = 'development'
 
 
-VITE_BASE_URL = 'https://core.caimei365.com'
+VITE_BASE_URL = 'https://core-b.caimei365.com'
 
 
 VITE_BASE_HTTP = 'https://material-b.caimei365.com'
 VITE_BASE_HTTP = 'https://material-b.caimei365.com'
 
 
@@ -8,4 +8,4 @@ VITE_BASE_OSS = 'https://caimei-oss.oss-cn-shenzhen.aliyuncs.com/beta/archiveFil
 
 
 VITE_IMAGE_URL = 'https://static.caimei365.com/'
 VITE_IMAGE_URL = 'https://static.caimei365.com/'
 
 
-VITE_HTTP_URL = 'https://www.caimei365.com'
+VITE_HTTP_URL = 'http://120.79.25.27:8009'

+ 1 - 5
src/views/Database/components/context-share.vue

@@ -24,8 +24,6 @@
 import { DArchiveResultData } from "@/types/api/context.type";
 import { DArchiveResultData } from "@/types/api/context.type";
 import { DFindParams, DScrollTab, tabList } from "@/types/views/database.type";
 import { DFindParams, DScrollTab, tabList } from "@/types/views/database.type";
 import { computed } from "vue";
 import { computed } from "vue";
-import { useRouter } from "vue-router";
-//import useCopyText from "@/Hooks/useCopyText";
 import useWeChatShare from "@/Hooks/useWeChatShare";
 import useWeChatShare from "@/Hooks/useWeChatShare";
 import { useUserInfoState } from "@/store/user/user";
 import { useUserInfoState } from "@/store/user/user";
 import getFileImg from "@/Hooks/useFileImage";
 import getFileImg from "@/Hooks/useFileImage";
@@ -33,7 +31,6 @@ import useCopyText from '@/Hooks/useCopyText';
 
 
 const props = defineProps<DArchiveResultData>();
 const props = defineProps<DArchiveResultData>();
 const { serviceProviderId, userId } = useUserInfoState();
 const { serviceProviderId, userId } = useUserInfoState();
-const router = useRouter();
 
 
 const imageLink = computed<string>(() => {
 const imageLink = computed<string>(() => {
   if (props.type !== "3") return props.image as string;
   if (props.type !== "3") return props.image as string;
@@ -50,8 +47,7 @@ const handleDetail = ($event: DArchiveResultData) => {
     (Number($event.type) === 6 ? "-1.html" : ".html");
     (Number($event.type) === 6 ? "-1.html" : ".html");
   console.log('链接', link)
   console.log('链接', link)
   if (Number($event.type) > 5) return window.open(link);
   if (Number($event.type) > 5) return window.open(link);
-  router.push("/database/detail?id=" + $event.id + "&t=" + $event.type);
-  console.log($event.type);
+  window.location.href = "/database/detail?id=" + $event.id + "&t=" + $event.type
 };
 };
 </script>
 </script>
 
 

+ 2 - 2
src/views/Preview/index.vue

@@ -156,7 +156,7 @@ const initData = () => {
   });
   });
 };
 };
 const statistical = async () => {
 const statistical = async () => {
-  if (route.query.isSp) return;
+  //if (route.query.isSp) return;
   const statisticsForm = {
   const statisticsForm = {
     productArchiveId: params.value.id,
     productArchiveId: params.value.id,
     headUserId: params.value.suid?.toString(),
     headUserId: params.value.suid?.toString(),
@@ -179,7 +179,6 @@ const statistical = async () => {
 };
 };
 onActivated(() => {
 onActivated(() => {
   initData();
   initData();
-  statistical();
 });
 });
 onMounted(() => {
 onMounted(() => {
   useWeChatShare({
   useWeChatShare({
@@ -190,6 +189,7 @@ onMounted(() => {
     isShowToast: false,
     isShowToast: false,
     suid: params.value.suid,
     suid: params.value.suid,
   });
   });
+  statistical();
 });
 });
 </script>
 </script>