feat:测试
This commit is contained in:
@@ -17,11 +17,11 @@ watch(
|
||||
() => code.value,
|
||||
async (val) => {
|
||||
if (val) {
|
||||
console.log("val", val);
|
||||
// 使用正则表达式提取路由参数
|
||||
const regex = /\/auth\/([\w-]+)[?]?/;
|
||||
const result = regex.exec(route.fullPath);
|
||||
const authParam = result != null ? result[1].toUpperCase() : null;
|
||||
console.log(type.value, "类型");
|
||||
if (type.value === 0) {
|
||||
const res = await authOtherLogin({ code: val }, authParam);
|
||||
} else if (type.value === 1) {
|
||||
|
||||
Reference in New Issue
Block a user