瀏覽代碼

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
 // 创建 App实例
9
 // 创建 App实例
10
 const app = createApp(App)
10
 const app = createApp(App)
11
 
11
 
12
-// redirect()
12
+redirect()
13
 
13
 
14
 Login().then(e => {
14
 Login().then(e => {
15
 
15
 

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

33
  * @param {*} opt
33
  * @param {*} opt
34
  */
34
  */
35
 export function share (opt) {
35
 export function share (opt) {
36
-  const { origin, pathname, search } = window.location
36
+  const { origin, pathname } = window.location
37
   // const defaultLink = origin + pathname
37
   // const defaultLink = origin + pathname
38
   const defaultImg = `${origin}${pathname}img/share.jpg`
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
   const imgUrl = opt.imgUrl || defaultImg
41
   const imgUrl = opt.imgUrl || defaultImg
42
 
42
 
43
   initSDK(link)
43
   initSDK(link)