Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
live-management-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
live-management-web
Commits
6e056536
Commit
6e056536
authored
Jul 27, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9dcffe95
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
38 deletions
+23
-38
src/App.vue
+1
-4
src/components/AddVideoPlay.vue
+1
-1
src/components/Drag2.vue
+1
-1
src/layouts/components/Content.vue
+2
-8
src/pages/createLive/components/scripts.vue
+1
-1
src/pages/createLive/index.vue
+0
-2
src/pages/login/index.vue
+2
-3
src/pages/startLive/components/video.vue
+1
-1
src/store/modules/theme.ts
+11
-13
src/utils/Tdesign.ts
+2
-3
src/utils/rem.ts
+1
-1
No files found.
src/App.vue
View file @
6e056536
...
...
@@ -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'
];
});
...
...
src/components/AddVideoPlay.vue
View file @
6e056536
...
...
@@ -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'
;
...
...
src/components/Drag2.vue
View file @
6e056536
...
...
@@ -20,7 +20,7 @@ const props = withDefaults(
child
:
''
,
},
);
const
emit
=
defineEmits
([
'delete'
]);
// 拖拽元素
const
DragBox
=
ref
();
// 默认类名
...
...
src/layouts/components/Content.vue
View file @
6e056536
...
...
@@ -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'
;
...
...
src/pages/createLive/components/scripts.vue
View file @
6e056536
...
...
@@ -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'
;
...
...
src/pages/createLive/index.vue
View file @
6e056536
...
...
@@ -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'
;
...
...
src/pages/login/index.vue
View file @
6e056536
...
...
@@ -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'
}],
};
});
...
...
src/pages/startLive/components/video.vue
View file @
6e056536
...
...
@@ -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
(
...
...
src/store/modules/theme.ts
View file @
6e056536
const
state
=
{
theme
:
'light'
,
};
type
StateType
=
typeof
state
;
};
type
StateType
=
typeof
state
;
const
mutations
=
{
setTheme
(
state
:
StateType
,
info
:
string
)
{
const
mutations
=
{
setTheme
(
state
:
StateType
,
info
:
string
)
{
state
.
theme
=
info
;
},
};
};
const
getters
=
{
getTheme
:
(
state
:
StateType
)
=>
(
token
)
=>
{
const
getters
=
{
getTheme
:
(
state
:
StateType
)
=>
(
)
=>
{
return
state
.
theme
;
},
};
};
const
actions
=
{};
const
actions
=
{};
export
default
{
export
default
{
namespaced
:
true
,
state
,
mutations
,
actions
,
getters
,
};
\ No newline at end of file
};
src/utils/Tdesign.ts
View file @
6e056536
...
...
@@ -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
);
});
},
...
...
src/utils/rem.ts
View file @
6e056536
...
...
@@ -12,5 +12,5 @@ export const useREM = () => {
// // 定义根元素(html)fontSize 的大小 (rem)
// html.style.fontSize = fontSize + 'px';
// });
let
width
=
window
.
innerWidth
;
//
let width = window.innerWidth;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment