Commit 5e412241 by qlintonger xeno

添加内容+8

parent 80ca31ba
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import {isUserHost} from "AnyR/states/chatChannelStates"; import {isUserHost} from "AnyR/states/chatChannelStates";
import {userStates} from "AnyR/states/wsStates"; import {userStates} from "AnyR/states/wsStates";
import {computed, onMounted} from "vue"; import {computed, onMounted, onUpdated} from "vue";
import {useAnyR} from "AnyR/index"; import {useAnyR} from "AnyR/index";
const ps = defineProps({ const ps = defineProps({
...@@ -64,5 +64,11 @@ onMounted(function () { ...@@ -64,5 +64,11 @@ onMounted(function () {
AnyR?.agora.forceReplay(ps.id) AnyR?.agora.forceReplay(ps.id)
} }
}) })
onUpdated(function () {
if (!ps.isSelf) {
AnyR?.agora.forceReplay(ps.id)
}
})
</script> </script>
<style lang="less" scoped></style> <style lang="less" scoped></style>
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