mirror of
				https://gitee.com/bookshelfplus/bookshelfplus
				synced 2025-11-04 04:13:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			656 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			656 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<script>
 | 
						|
    postRequest('/debug/status', { token: localStorage.getItem("token") })
 | 
						|
        .then(function (response) {
 | 
						|
            var axiosData = response.data;
 | 
						|
            var status = axiosData.status;
 | 
						|
            var data = axiosData.data;
 | 
						|
 | 
						|
            if (status === "success") {
 | 
						|
                console.log(data);
 | 
						|
                $(".main").html("请在 F12 查看");
 | 
						|
            } else {
 | 
						|
                alert(`出错啦!${data.errMsg} (错误码: ${data.errCode}) `);
 | 
						|
            }
 | 
						|
        }).catch(function (error) {
 | 
						|
            console.log(error);
 | 
						|
            alert("无法连接到服务器,请检查网络连接!");
 | 
						|
        });
 | 
						|
</script> |