fix
This commit is contained in:
@@ -85,7 +85,6 @@ export default defineComponent({
|
||||
let record:any = ref([
|
||||
|
||||
])
|
||||
const userInfo:any = {}
|
||||
let bloodBars:any = ref(0)
|
||||
let {t} = useI18n()
|
||||
let isTest = ref()
|
||||
@@ -95,6 +94,9 @@ export default defineComponent({
|
||||
return store.state.Guide.guide
|
||||
})
|
||||
let driver__Time:any = ref()
|
||||
let userDetail:any= computed(()=>{
|
||||
return store.state.UserHabit.userDetail
|
||||
})
|
||||
return {
|
||||
robotTop,
|
||||
robotInput,
|
||||
@@ -104,14 +106,14 @@ export default defineComponent({
|
||||
robotChildDom,
|
||||
timeTop,
|
||||
timeInput,
|
||||
userInfo,
|
||||
bloodBars,
|
||||
t,
|
||||
isTest,
|
||||
store,
|
||||
workspace,
|
||||
driver__,
|
||||
driver__Time
|
||||
driver__Time,
|
||||
userDetail
|
||||
};
|
||||
},
|
||||
data() {
|
||||
@@ -171,10 +173,8 @@ export default defineComponent({
|
||||
},
|
||||
mounted() {
|
||||
this.textScroll()
|
||||
let userInfo:any = getCookie("userInfo")
|
||||
let isTest:any = getCookie('isTest')
|
||||
this.isTest =JSON.parse(isTest)
|
||||
this.userInfo = JSON.parse(userInfo);
|
||||
if (sessionStorage.getItem("record") == null) {
|
||||
this.record = []
|
||||
}else{
|
||||
@@ -220,7 +220,7 @@ export default defineComponent({
|
||||
this.createTimer()
|
||||
},
|
||||
getBloodBars(){
|
||||
Https.axiosGet(Https.httpUrls.getBloodBars,{params:{userId:this?.userInfo?.userId}}).then((rv: any) => {
|
||||
Https.axiosGet(Https.httpUrls.getBloodBars,{params:{userId:this?.userDetail?.userId}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
if(rv <= 0){
|
||||
rv = 0
|
||||
@@ -277,7 +277,7 @@ export default defineComponent({
|
||||
// sessionStorage.removeItem
|
||||
let a = true
|
||||
let data = {
|
||||
"user_id" : this.userInfo?.userId,
|
||||
"user_id" : this.userDetail?.userId,
|
||||
"session_id":sessionId,
|
||||
"message" : this.chatCentent,
|
||||
gender:this.workspace.sexEnum.value,
|
||||
@@ -386,7 +386,7 @@ export default defineComponent({
|
||||
likeFile(item:any,imgIndex:number,index:number){
|
||||
let data = {
|
||||
...item,
|
||||
"userId" : this.userInfo?.userId,
|
||||
"userId" : this.userDetail?.userId,
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.pictureLikeOrUnLike, data).then(
|
||||
(rv) => {
|
||||
|
||||
Reference in New Issue
Block a user