This commit is contained in:
砂糖
2025-10-10 16:47:38 +08:00
commit 3db2ccf591
1160 changed files with 157697 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import provider from "@/views/print/printtemplate/ProviderData";
import {hiprint} from 'vue-plugin-hiprint'
import {PRINT_DICT} from "../utils/print";
import webSite from "@/config/website";
/**
* hiprint初始化
*/
export const hiprintMixin = {
data() {
return {
hiprintTemplate: null,
hiprintThis: null
};
},
mounted() {
hiprint.init({
providers: [provider],
host: webSite.print_transfer_url,
token: webSite.print_transfer_token
});
this.hiprintThis = hiprint
this.hiprintTemplate = new hiprint.PrintTemplate();
},
};