mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
37 lines
825 B
HTML
37 lines
825 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>my yApi</title>
|
|
<link rel="stylesheet" href="http://127.0.0.1:4000/yapi/prd/index@dev.css">
|
|
<script src="https://qsso.corp.qunar.com/lib/qsso-auth.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="yapi" style="height: 100%;"></div>
|
|
<script src="http://127.0.0.1:4000/yapi/prd/index@dev.js"></script>
|
|
|
|
<!--
|
|
<button id="qsso-login">qsso登录</button>
|
|
<script src="https://qsso.corp.qunar.com/lib/qsso-auth.js"></script>
|
|
|
|
<script>
|
|
QSSO.attach('qsso-login','/user/login_by_token');
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open('GET', '/user/status')
|
|
xhr.onload = function(e){
|
|
if(this.status == 200){
|
|
alert(this.responseText)
|
|
}
|
|
}
|
|
xhr.send()
|
|
|
|
</script>
|
|
|
|
|
|
<html>
|
|
|
|
-->
|
|
</body>
|
|
</html>
|