张延森 il y a 2 ans
Parent
révision
df33b0cd9a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/utils/wx.js

+ 1
- 1
src/utils/wx.js Voir le fichier

@@ -13,7 +13,7 @@
13 13
  * 跳转授权页面
14 14
  */
15 15
 export function getRedirectURL (force, code) {
16
-  if (process.env.NODE_ENV === 'development') return;
16
+  if (import.meta.env.DEV) return;
17 17
 
18 18
   const originCode = localStorage.getItem('wxcode');
19 19
   const wxfirst = localStorage.getItem('wxfirst') === null;