|
@@ -2,9 +2,12 @@ import { createApp } from "vue";
|
|
import App from "@/App.vue";
|
|
import App from "@/App.vue";
|
|
import router from "@/router.js";
|
|
import router from "@/router.js";
|
|
import pinia from "@store/pinia.js";
|
|
import pinia from "@store/pinia.js";
|
|
-import Page from "@components/layout/Page.vue";
|
|
|
|
import customize from "@utility/customInstructions.js"
|
|
import customize from "@utility/customInstructions.js"
|
|
|
|
|
|
|
|
+// 引入页面
|
|
|
|
+import Page from "@components/layout/Page.vue";
|
|
|
|
+import TranslationComponent from "@components/common/translationComponent.vue"
|
|
|
|
+
|
|
// 引入样式
|
|
// 引入样式
|
|
import "@/style.scss";
|
|
import "@/style.scss";
|
|
import "@/assets/tailwind.css"
|
|
import "@/assets/tailwind.css"
|
|
@@ -14,6 +17,9 @@ import 'vant/lib/index.css'
|
|
|
|
|
|
const app = createApp(App);
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
+// 注册全局转译组件
|
|
|
|
+app.component('TranslationComponent', TranslationComponent);
|
|
|
|
+
|
|
// 注册自定义指令
|
|
// 注册自定义指令
|
|
for (const [key, value] of Object.entries(customize)) {
|
|
for (const [key, value] of Object.entries(customize)) {
|
|
app.directive(value.key, value.directive)
|
|
app.directive(value.key, value.directive)
|