瀏覽代碼

Merge branch 'master' of http://git.ycjcjy.com/honghe/roundabout

[baozhangchao] 3 年之前
父節點
當前提交
c3de98a924
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      src/main.js
  2. 2
    2
      src/utils/initial.js

+ 1
- 1
src/main.js 查看文件

@@ -9,7 +9,7 @@ import MusicOnce from './components/MusicOnce.vue'
9 9
 // 创建 App实例
10 10
 const app = createApp(App)
11 11
 
12
-// redirect()
12
+redirect()
13 13
 
14 14
 Login().then(e => {
15 15
 

+ 2
- 2
src/utils/initial.js 查看文件

@@ -33,11 +33,11 @@ function initSDK (url) {
33 33
  * @param {*} opt
34 34
  */
35 35
 export function share (opt) {
36
-  const { origin, pathname, search } = window.location
36
+  const { origin, pathname } = window.location
37 37
   // const defaultLink = origin + pathname
38 38
   const defaultImg = `${origin}${pathname}img/share.jpg`
39 39
 
40
-  const link = origin + pathname + search // window.location.href
40
+  const link = origin + pathname // window.location.href
41 41
   const imgUrl = opt.imgUrl || defaultImg
42 42
 
43 43
   initSDK(link)