Commit 6a49e2f9 authored by beisir's avatar beisir

Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy

parents 2455bc00 a31b0b52
......@@ -10,16 +10,15 @@ export default {
},
methods: {
getToken() {
const that = this;
// const that = this;
window.xyqbNativeEvent = function(res) {
const json = typeof res === 'string' ? JSON.parse(res) : res;
if (json.event === 'getTokenSuccess') {
const appData = json.data || {};
if (appData && appData.token) {
localStorage.set('vccToken', appData.token);
that.$nextTick(() => {
window.location.reload();
});
const location = window.location;
window.location.href = location.href;
}
}
};
......
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