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