调整进入首页workspace报错问题需要观察是否还会出现
This commit is contained in:
@@ -173,7 +173,7 @@ export default defineComponent({
|
||||
setup(){
|
||||
const store = useStore();
|
||||
let workspaceItem:any = ref({
|
||||
id:'',
|
||||
id:-1,
|
||||
id_:1,
|
||||
workSpaceName:"工作台1",
|
||||
putName:false,
|
||||
@@ -457,7 +457,7 @@ export default defineComponent({
|
||||
v.overallSingle = true
|
||||
}
|
||||
v.putName = false
|
||||
if(v.id == (this.workspaceItem.id?this.workspaceItem.id:rv.id)){
|
||||
if(v.id == (this.workspaceItem.id == -1 ?rv.id:this.workspaceItem.id)){
|
||||
this.workspaceItem = v
|
||||
this.setMannequinsSex()
|
||||
this.setPosition('')
|
||||
@@ -501,6 +501,9 @@ export default defineComponent({
|
||||
|
||||
},
|
||||
putWorkspace(data:any,index:any){//修改workspace
|
||||
if(this.workspaceItem.id == -1){
|
||||
return
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.workspacesaveOrUpdate,data).then((rv: any) => {
|
||||
if (rv) {
|
||||
if(index){
|
||||
|
||||
Reference in New Issue
Block a user