Browse Source

upload

dev_YWQ
HolyKnightIX 1 year ago
parent
commit
36d701a698
3 changed files with 6 additions and 4 deletions
  1. +2
    -1
      src/layout/components/Navbar.vue
  2. +2
    -1
      src/views/createVideo/index.vue
  3. +2
    -2
      src/views/myAccount/index.vue

+ 2
- 1
src/layout/components/Navbar.vue View File

@@ -80,11 +80,12 @@ import { useAppStore } from "@/store/modules/app";
import { useTagsViewStore } from "@/store/modules/tagsView"; import { useTagsViewStore } from "@/store/modules/tagsView";
import { useUserStore } from "@/store/modules/user"; import { useUserStore } from "@/store/modules/user";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import LangSelect from "@/components/LangSelect/index.vue";

const { locale } = useI18n(); const { locale } = useI18n();


// 当前语言状态与国际化组件 // 当前语言状态与国际化组件
const lanChange = ref(locale); const lanChange = ref(locale);
import LangSelect from "@/components/LangSelect/index.vue";


const appStore = useAppStore(); const appStore = useAppStore();
const tagsViewStore = useTagsViewStore(); const tagsViewStore = useTagsViewStore();


+ 2
- 1
src/views/createVideo/index.vue View File

@@ -141,6 +141,7 @@
</template> </template>
<script setup> <script setup>
import { ref } from "vue"; import { ref } from "vue";
import { getCurrentInstance } from "vue";
// 标题 // 标题
let title = ref(""); let title = ref("");
// 上传图片 // 上传图片
@@ -150,7 +151,7 @@ function changeFile(e) {
} }


// $t在script中的使用 // $t在script中的使用
import { getCurrentInstance } from "vue";
const { const {
appContext: { appContext: {
config: { globalProperties }, config: { globalProperties },


+ 2
- 2
src/views/myAccount/index.vue View File

@@ -95,11 +95,11 @@


<script setup> <script setup>
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import { useRouter } from "vue-router";
const { locale } = useI18n(); const { locale } = useI18n();


const currentLan = ref(locale); const currentLan = ref(locale);


import { useRouter } from "vue-router";
const router = useRouter(); const router = useRouter();
function routerTo(url) { function routerTo(url) {
router.push(url); router.push(url);
@@ -147,7 +147,7 @@ function routerTo(url) {


.password { .password {
display: inline-block; display: inline-block;
float: right;
// float: right;
padding: 2px 8px; padding: 2px 8px;
border: 1px solid #000; border: 1px solid #000;
border-radius: 5px; border-radius: 5px;


Loading…
Cancel
Save