Commit 5586b988 by yancanhua

fix: url 复制问题修改

1 parent e8276a01
...@@ -67,6 +67,9 @@ const actions = { ...@@ -67,6 +67,9 @@ const actions = {
const { code, data, message } = res; const { code, data, message } = res;
if (code == "0") { if (code == "0") {
state.showWindow = true; state.showWindow = true;
const hrefUrl = window.location.href;
const newUrl = hrefUrl.replace(/([?&])code=[^&]*/, (match, prefix) => { return prefix === '?' ? '?' : ''; });
window.history.replaceState({}, '', newUrl);
if (data.loginList && data.loginList.length) { if (data.loginList && data.loginList.length) {
let [item] = data.loginList let [item] = data.loginList
if (item.loginList && item.loginList.length) { if (item.loginList && item.loginList.length) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!