修复detail撤回存储数据过大问题
This commit is contained in:
@@ -36,6 +36,7 @@ import { Https } from "@/tool/https";
|
||||
import { useStore } from "vuex";
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { getMousePosition } from "@/tool/mdEvent";
|
||||
import { KeyValueDB } from "@/tool/indexedDB";
|
||||
import Vue3Moveable from 'vue3-moveable';
|
||||
import Moveable from 'moveable';
|
||||
import { parse } from 'vue/compiler-sfc';
|
||||
@@ -393,11 +394,11 @@ export default defineComponent({
|
||||
initMoveableForSelected()
|
||||
},{immediate: true,})
|
||||
|
||||
const setRevocation = ()=>{
|
||||
const setRevocation = async ()=>{
|
||||
let frontBack = JSON.parse(JSON.stringify(detailData.frontBack))
|
||||
let revocation:any = JSON.parse((sessionStorage.getItem("revocation") as any))
|
||||
let revocation:any = JSON.parse((await KeyValueDB.get("revocation") as any) || '[]')
|
||||
revocation.push({designData:null,position:frontBack})
|
||||
sessionStorage.setItem('revocation', JSON.stringify(revocation));
|
||||
KeyValueDB.set('revocation', JSON.stringify(revocation));
|
||||
}
|
||||
const upDataDetail = async ()=>{
|
||||
//同步到selectDetail数据中,
|
||||
|
||||
Reference in New Issue
Block a user