none data,complete all

This commit is contained in:
winter_born
2026-04-15 12:57:04 +08:00
parent 4c8a4ae4f5
commit f210bcc168
2 changed files with 59 additions and 0 deletions

View File

@@ -49,6 +49,15 @@
"navigationBarTitleText": ""
}
}
,{
"path" : "pages/index/dataprocess",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",

View File

@@ -0,0 +1,50 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
async requests(gest,path){
let test
if(gest=="get"){
let text = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`,{
method:"GET",
headers:{
"Content-Type":"application/json",
"Authorization":(await this.requests("POST","/app/login"))
}
})
}else if(gest="POST"){
let text = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`,{
method:"GET",
headers:{
"Content-Type":"application/json",
},
body:JSON.stringify({
"password": "0CYdq6Hn",
"username": "6dOMIgIU"
})
})
}
const data = await text
console.log(data);
}
},
async mounted(){
let get=[]
}
}
</script>
<style>
</style>