张延森 3 år sedan
förälder
incheckning
29f1e8bb0d
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2
    2
      config/dev.js
  2. 1
    1
      src/utils/hooks/usePoster.js

+ 2
- 2
config/dev.js Visa fil

4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"https://xlk.njyz.tech"',
6
     // HOST: '"https://xlk.njyz.tech"',
7
-    HOST: '"https://xlj.newlandsh.com"',
8
-    // HOST: '"http://127.0.0.1:8081"',
7
+    // HOST: '"https://xlj.newlandsh.com"',
8
+    HOST: '"http://127.0.0.1:8567"',
9
     WSS_HOST: '"wss://xlk.njyz.tech"',
9
     WSS_HOST: '"wss://xlk.njyz.tech"',
10
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
10
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',

+ 1
- 1
src/utils/hooks/usePoster.js Visa fil

6
 
6
 
7
   useEffect(() => {
7
   useEffect(() => {
8
     if (poster) {
8
     if (poster) {
9
-      const page = router.path
9
+      const page = router.path.indexOf('/') === 0 ? router.path.substring(1) : router.path
10
       const scene = paramsRef.current
10
       const scene = paramsRef.current
11
   
11
   
12
       getMiniQrcode({ page, scene }).then((miniCode) => {
12
       getMiniQrcode({ page, scene }).then((miniCode) => {