去掉打印 和改接口地址

This commit is contained in:
浅念
2025-06-09 17:58:22 +08:00
parent ce95205a7b
commit 7e7858cc8c
30 changed files with 156 additions and 164 deletions
+5 -8
View File
@@ -14,7 +14,6 @@
}
},
onLoad(options) {
console.log(options)
this.getCode(options.code,options.state)
},
methods: {
@@ -28,10 +27,8 @@
},
getCode(code,state) {
// var code = this.getUrlParam('code');
console.log(code)
var code_url = '';
if (code == null || code == '' || !code) {
console.log(2222222)
request({
url:'feishu/getinfo',
method:'post',
@@ -43,7 +40,7 @@
if(res.data.code ==0){
var data = res.data.data;
this.datas = data
console.log(data)
// console.log(data)
code_url += 'https://open.feishu.cn/open-apis/authen/v1/authorize'
code_url += '?app_id=' + data.app_id
@@ -51,7 +48,7 @@
code_url += '&scope=' + data.scope
code_url += '&state=' + data.state;
console.log(code_url)
// console.log(code_url)
// return;
window.location.href = code_url;
}else{
@@ -96,16 +93,16 @@
const route = currentPage.route; // 页面路径
const options = currentPage.options; // 页面参数
const fullUrl = `${route}?${Object.keys(options).map(key => `${key}=${options[key]}`).join('&')}`;
console.log('当前页面完整 URL:', fullUrl);
// console.log('当前页面完整 URL:', fullUrl);
request({
url:'feishu/getinfo',
method:'post',
}).then(res => {
var data = res.data.data;
var urls = data.url+fullUrl
console.log(data)
// console.log(data)
this.webUrl = 'https://open.feishu.cn/open-apis/authen/v1/authorize?app_id='+data.app_id+'&redirect_uri='+urls+'&scope='+data.scope+'&state='+data.state
console.log(this.webUrl)
// console.log(this.webUrl)
})
},
}