localStorage.setItem('存储的名称',JSON.stringify(state中药存储的数据))
实例:
	localStorage.setItem('jb',JSON.stringify(state.jbnum))

将这条语句写在事件后。
在这里插入图片描述

Logo

前往低代码交流专区

更多推荐