panhui пре 2 година
родитељ
комит
b501792870
5 измењених фајлова са 6 додато и 6 уклоњено
  1. 1 1
      .env
  2. 1 1
      index.html
  3. 1 1
      src/components/common/ShareModal.vue
  4. 1 1
      src/main.ts
  5. 2 2
      src/router/index.ts

+ 1 - 1
.env

@@ -9,4 +9,4 @@ VITE_GLOB_OPEN_LONG_REPLY=false
 # When you want to use PWA
 VITE_GLOB_APP_PWA=false
 
-VITE_GLOB_APP_PUBLIC_PATH=/ui/
+VITE_GLOB_APP_PUBLIC_PATH=/momentsui/

+ 1 - 1
index.html

@@ -141,7 +141,7 @@
                 renderer: 'svg',
                 loop: true,
                 autoplay: true,
-                path: '/splash.json'
+                path: (window.location.origin === 'https://gpt.izouma.com' ? '/momentsui' : '') + '/splash.json'
             })
         </script>
     </body>

+ 1 - 1
src/components/common/ShareModal.vue

@@ -81,7 +81,7 @@ const imgUrl = ref('')
 
 const userStore = useUserStore()
 const shareUrl = ref('')
-fetchRedirectUrl(location.origin + '/ui/home?invitor=' + userStore.userInfo.id).then((res: any) => {
+fetchRedirectUrl(location.origin + '/momentsui/home?invitor=' + userStore.userInfo.id).then((res: any) => {
     shareUrl.value = res.url
 })
 const userInfo = computed(() => userStore.userInfo)

+ 1 - 1
src/main.ts

@@ -33,7 +33,7 @@ if (isWechat) {
                 openid.value = res as string
             })
         } else {
-            fetchRedirectUrl(window.location.origin + '/ui/home').then((res: any) => {
+            fetchRedirectUrl(window.location.origin + '/momentsui/home').then((res: any) => {
                 window.location.href = res.url
             })
         }

+ 2 - 2
src/router/index.ts

@@ -24,14 +24,14 @@ function jsapiSign() {
             wx.updateAppMessageShareData({
                 title: '走马AI助手',
                 desc: '人工智能技术驱动的自然语言处理工具',
-                link: location.origin + '/ui',
+                link: location.origin + '/momentsui',
                 imgUrl: 'https://cdn.raex.vip/image/2023-05-09-16-18-37TFOBVNIt.png',
                 success: function () {}
             })
             wx.updateTimelineShareData({
                 title: '走马AI助手——人工智能技术驱动的自然语言处理工具',
                 imgUrl: 'https://cdn.raex.vip/image/2023-05-09-16-18-37TFOBVNIt.png',
-                link: location.origin + '/ui'
+                link: location.origin + '/momentsui'
             })
         })
     })