| | |
| | | Vue.config.productionTip = false |
| | | |
| | | import '@/common/bluetooth.js'; |
| | | import { formatQty, formatQtyToNumber } from '@/common/format.js'; |
| | | // 前端数量统一2位小数展示(仅展示,后端不变) |
| | | Vue.prototype.$formatQty = formatQty; |
| | | Vue.prototype.$formatQtyToNumber = formatQtyToNumber; |
| | | Vue.filter('qty', formatQty); |
| | | //全局数据状态管理 vuex |
| | | import store from '@/store/index.js'; |
| | | Vue.prototype.$store = store; |
| | |
| | | // #ifdef VUE3 |
| | | import { createSSRApp } from 'vue' |
| | | import { createI18n } from 'vue-i18n' |
| | | import { formatQty, formatQtyToNumber } from '@/common/format.js' |
| | | const i18n = createI18n(i18nConfig) |
| | | export function createApp() { |
| | | const app = createSSRApp(App) |
| | | app.use(i18n) |
| | | app.config.globalProperties.$formatQty = formatQty |
| | | app.config.globalProperties.$formatQtyToNumber = formatQtyToNumber |
| | | return { |
| | | app |
| | | } |