Browse Source

mark

hyperf
chenlong 1 year ago
parent
commit
5caede6f86
  1. 15
      View/Document/view.blade.php

15
View/Document/view.blade.php

@ -1,5 +1,6 @@
<html>
<html lang="zh">
<head>
<title>Api 文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.8"></script>
<!-- 引入样式 -->
@ -256,7 +257,7 @@
</body>
<script>
var APP = new Vue({
const APP = new Vue({
el:'#app',
data: {
docDesVisible:true,
@ -299,7 +300,9 @@
}
this.getApiInfo();
this.myMark = localStorage.getItem("myMark").split(',');
if (localStorage.getItem("myMark")) {
this.myMark = localStorage.getItem("myMark").split(',');
}
},
mounted(){
@ -353,12 +356,6 @@
this.form = this.requestParamsResolve(this.currentApiInfo.requestParams);
this.paramShowJsonEl && this.paramShowJsonEl.set(this.form);
},
getPath(){
try{
return new URL(this.currentApiInfo.url).pathname
}catch(e){}
return '';
},
requestParamsResolve(params){
let forms = {};
for (let i = 0; i < params.length; i++) {

Loading…
Cancel
Save