Browse Source

调整接口为线上

master
WN 1 year ago
parent
commit
9583a1f905
2 changed files with 4 additions and 5 deletions
  1. +2
    -2
      src/views/psychological-modeling/index.vue
  2. +2
    -3
      src/views/psychological-questionnaire/index.vue

+ 2
- 2
src/views/psychological-modeling/index.vue View File

@@ -59,7 +59,7 @@
style="width: 100%; height: 100%"
@click="toQuestion"
v-if="info.initScaleState !== 1"
>情绪初始化评估</van-button
>去完成</van-button
>
</div>
</div>
@@ -116,7 +116,7 @@ export default {
this.$router.push(`/PsychologicalQuestionnaire?uid=${this.uid}`)
},
api(url, config) {
let baseUrl = 'http://172.16.1.97:9291'
let baseUrl = 'https://dbmq.rzliot.com/heart'
setTimeout(() => {
this.$toast.loading({
message: '',


+ 2
- 3
src/views/psychological-questionnaire/index.vue View File

@@ -154,12 +154,11 @@ export default {
re1.response.forEach((item) => {
let tempt = { ...item }
let a1 = tempt.Option.split('#&')
let a2 = tempt.Score.split('#&')
let option = []
for (let index = 0; index < a1.length; index++) {
option.push({
label: a1[index],
value: a2[index],
value: index + 1,
})
}
tempt.Option = option
@@ -230,7 +229,7 @@ export default {
duration: 0,
})
}, 100)
let baseUrl = 'http://172.16.1.97:9291'
let baseUrl = 'https://dbmq.rzliot.com/heart'
return new Promise((res) => {
axios({
url: `${baseUrl}${url}`,


Loading…
Cancel
Save