瀏覽代碼

upload

dev_YWQ
HolyKnightIX 1 年之前
父節點
當前提交
36d701a698
共有 3 個檔案被更改,包括 6 行新增4 行删除
  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 查看文件

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

const { locale } = useI18n();

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

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


+ 2
- 1
src/views/createVideo/index.vue 查看文件

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

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


+ 2
- 2
src/views/myAccount/index.vue 查看文件

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

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

const currentLan = ref(locale);

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

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


Loading…
取消
儲存