Compare commits
2 Commits
fca04ba44b
...
9db6a589f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9db6a589f0 | ||
|
|
896490e57b |
@@ -248,7 +248,7 @@ export default defineComponent({
|
||||
const addPrintELement = async (data:any)=>{
|
||||
if(!editPrintElementData.isSketchLoad)return
|
||||
let {scale,location} = await setScaleLocation(data)
|
||||
let printIndex = 0
|
||||
let printIndex = 1
|
||||
let allElementPrint = []
|
||||
if(props.type == 'print'){
|
||||
allElementPrint = [
|
||||
@@ -262,9 +262,9 @@ export default defineComponent({
|
||||
...(editPrintElementData.selectDetail.printObject.prints || []),
|
||||
]
|
||||
}
|
||||
|
||||
printIndex = Math.max(...allElementPrint.map(item => Number(item.priority))) + 1
|
||||
console.log(printIndex)
|
||||
if(allElementPrint.length > 1){
|
||||
printIndex = Math.max(...allElementPrint.map(item => Number(item.priority))) + 1
|
||||
}
|
||||
let item = {
|
||||
angle:0,
|
||||
designType:data.designType,
|
||||
|
||||
Reference in New Issue
Block a user