优化
This commit is contained in:
12
src/store/print.js
Normal file
12
src/store/print.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const usePrint = defineStore({
|
||||
id: "print",
|
||||
state: () => ({
|
||||
data: "", // 要打印的数据
|
||||
}),
|
||||
actions: {
|
||||
// 执行打印操作
|
||||
printHandle(state) {},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user