Commit 6e056536 by haojie

1

parent 9dcffe95
......@@ -11,10 +11,7 @@ import { useREM } from '@/utils/rem';
useREM();
const store = useStore();
// 用户信息
const userInfo = computed(() => store.getters['user/userInfo']);
// 用户token
const userToken = computed(() => store.getters['user/token']);
const mode = computed(() => {
return store.getters['setting/mode'];
});
......
......@@ -23,7 +23,7 @@
<script setup lang="ts">
import ConfirmDialog from '@/components/ConfirmDialog.vue';
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
import { computed, onBeforeUnmount, ref, watch } from 'vue';
import { useStore } from 'vuex';
import Loading from '@/components/Loading/FirstCircle.vue';
......
......@@ -20,7 +20,7 @@ const props = withDefaults(
child: '',
},
);
const emit = defineEmits(['delete']);
// 拖拽元素
const DragBox = ref();
// 默认类名
......
......@@ -5,15 +5,9 @@
</transition>
</router-view>
</template>
<script lang="ts" setup>
import { useRoute } from 'vue-router';
const route = useRoute();
const key = () => {
let time = new Date().valueOf();
return route.fullPath + time;
};
</script>
<script lang="ts" setup></script>
<style lang="less">
@import '@/style/variables';
......
......@@ -99,7 +99,7 @@ import { computed, onMounted, reactive, ref, watch } from 'vue';
import CustomUpload from '@/components/upload';
import Select from '@/components/Select.vue';
import SelectionPopup from '@/components/SelectionPopup.vue';
import { createTestData, show_message } from '@/utils/tool';
import { show_message } from '@/utils/tool';
import { createLiveKeys, scriptTypeList, scriptTypeText, scriptTypePhonetics } from '@/service/CreateLive';
import { useLiveInfoSubmit } from '@/hooks/useStoreCommit';
import Textarea from '@/components/textarea.vue';
......
......@@ -40,7 +40,6 @@
<div class="label">画面预览:点中主播,即可缩放、移动位置</div>
<div class="drag-box">
<template v-if="liveImage">
<!-- <Drag :img="liveImage" id="1"></Drag> -->
<Drag2 :child="videoPlay">
<div class="video-play-box">
<video ref="videoPlay" :src="liveImage" @canplay="videoCanplay"></video>
......@@ -62,7 +61,6 @@ import ConfirmDialog from '@/components/ConfirmDialog.vue';
import StepList from './components/SetpsList';
import ScriptVue from './components/scripts.vue';
import InteractVue from './components/interact.vue';
import Drag from '@/components/drag.vue';
import Button from '@/components/Button.vue';
import ChoseDigitalPerson from './components/ChoseDigitalPerson.vue';
import HomeSvg from '@/assets/svg/createLive/home.svg';
......
......@@ -57,7 +57,6 @@
import CustomInput from '@/components/input/index.vue';
import Button from '@/components/Button.vue';
import { Form as TForm } from 'tdesign-vue-next';
import LogoSvg from '@/assets/svg/logo.svg';
import { computed, onMounted, reactive, ref } from 'vue';
import { show_message } from '@/utils/tool';
import { useStore } from 'vuex';
......@@ -86,8 +85,8 @@ const formData = reactive({
const FORM_RULES = computed(() => {
return {
account: [{ required: true, message: '账号不能为空', type: 'error' }] as FormRule[],
password: [{ required: true, message: '密码不能为空', type: 'error' }] as FormRule[],
account: [{ required: true, message: '账号不能为空', type: 'error' }],
password: [{ required: true, message: '密码不能为空', type: 'error' }],
};
});
......
......@@ -13,7 +13,7 @@
<script lang="ts" setup>
import Button from '@/components/Button.vue';
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
import { onBeforeUnmount, ref, watch } from 'vue';
import AddVideoPlay from '@/components/AddVideoPlay.vue';
const props = withDefaults(
......
const state = {
theme: 'light',
};
type StateType = typeof state;
const mutations = {
setTheme(state: StateType, info:string) {
state.theme = info;
},
};
const getters = {
getTheme: (state: StateType) => (token) => {
return state.theme;
},
};
const actions = {};
export default {
namespaced: true,
state,
mutations,
actions,
getters,
};
\ No newline at end of file
theme: 'light',
};
type StateType = typeof state;
const mutations = {
setTheme(state: StateType, info: string) {
state.theme = info;
},
};
const getters = {
getTheme: (state: StateType) => () => {
return state.theme;
},
};
const actions = {};
export default {
namespaced: true,
state,
mutations,
actions,
getters,
};
......@@ -30,11 +30,10 @@ const components = [
TProgress,
TUpload,
];
// 无法循环挂载的组件--单独拎出来
const oncomponents = [];
export default {
install(app) {
components.forEach((component, index) => {
components.forEach((component) => {
app.component(component.name, component);
});
},
......
......@@ -12,5 +12,5 @@ export const useREM = () => {
// // 定义根元素(html)fontSize 的大小 (rem)
// html.style.fontSize = fontSize + 'px';
// });
let width = window.innerWidth;
// let width = window.innerWidth;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment