Commit 9488548f by xuzhenghua

pull

parent a5fe57c6
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.946cdc08b791b0ff52481b1e527b4359.js" "/precache-manifest.51fbac38d5a876006a8801b296fb3bae.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
...@@ -30,5 +30,5 @@ workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); ...@@ -30,5 +30,5 @@ workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute("/index.html", { workbox.routing.registerNavigationRoute("/index.html", {
blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/], blacklist: [/^\/_/,/\/[^/]+\.[^/]+$/],
}); });
...@@ -166,7 +166,7 @@ class App extends Component { ...@@ -166,7 +166,7 @@ class App extends Component {
return return
} }
http.get(`${API['home']}/m/wx_loginInfo/code/${code}?redirect=${encodeURIComponent(window.location.href)}`) http.get(`${API["passport-api"]}/m/wx_loginInfo/code/${code}?redirect=${encodeURIComponent(window.location.href)}`)
.then(res => { .then(res => {
let data = res.data let data = res.data
if (data.errno == 200) { if (data.errno == 200) {
......
...@@ -51,6 +51,8 @@ class MyTreasure extends Component { ...@@ -51,6 +51,8 @@ class MyTreasure extends Component {
const {userInfo} = nextProp const {userInfo} = nextProp
if (!userInfo.uid) { if (!userInfo.uid) {
history.push('/passport') history.push('/passport')
}else {
this.fetchMyTreasure();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment