We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b4e85 commit 7cf750fCopy full SHA for 7cf750f
src/views/VideoPlayer/VideoPlayer.vue
@@ -105,7 +105,11 @@
105
<!-- 控制栏右侧 -->
106
<div class="flex items-center ml-auto gap-2">
107
<!-- 分辨率选择 -->
108
- <NPopselect v-model:value="currentResolution" :options="resolutions">
+ <NPopselect
109
+ v-model:value="currentResolution"
110
+ :options="resolutions"
111
+ @update:value="changeResolution"
112
+ >
113
<NButton quaternary round class="text-white!">
114
{{ currentResolutionLabel }}
115
</NButton>
@@ -619,10 +623,6 @@
619
623
muted.value = !muted.value;
620
624
};
621
625
622
- watch(currentResolution, (val) => {
- changeResolution(val);
- });
-
626
// 切换分辨率
627
const changeResolution = (value: number) => {
628
// const resolution = resolutions.value.find((res) => res.label === label);
0 commit comments