|
@@ -153,12 +153,13 @@
|
|
</template>
|
|
</template>
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
import { defineComponent, ref, reactive } from "vue";
|
|
import { defineComponent, ref, reactive } from "vue";
|
|
-import { useRouter } from "vue-router";
|
|
|
|
|
|
+import { useRoute, useRouter } from "vue-router";
|
|
import VideoDialog from "./components/VideoDialog/index.vue";
|
|
import VideoDialog from "./components/VideoDialog/index.vue";
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: { VideoDialog },
|
|
components: { VideoDialog },
|
|
setup() {
|
|
setup() {
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
+ const route = useRoute();
|
|
const active = ref(0);
|
|
const active = ref(0);
|
|
const gameLinks = reactive([
|
|
const gameLinks = reactive([
|
|
{
|
|
{
|
|
@@ -212,19 +213,20 @@ export default defineComponent({
|
|
]);
|
|
]);
|
|
const videoVisible = ref(false);
|
|
const videoVisible = ref(false);
|
|
const cVideo = ref("");
|
|
const cVideo = ref("");
|
|
|
|
+ const is = ref(route.query.is);
|
|
|
|
+
|
|
const $_change = (index: number) => {
|
|
const $_change = (index: number) => {
|
|
active.value = index;
|
|
active.value = index;
|
|
};
|
|
};
|
|
|
|
|
|
const $_navigate = (path: string) => {
|
|
const $_navigate = (path: string) => {
|
|
- router.push(path);
|
|
|
|
|
|
+ router.push({ path, query: { is: is.value } });
|
|
};
|
|
};
|
|
|
|
|
|
const $_open = (url: string) => {
|
|
const $_open = (url: string) => {
|
|
cVideo.value = url;
|
|
cVideo.value = url;
|
|
videoVisible.value = true;
|
|
videoVisible.value = true;
|
|
};
|
|
};
|
|
-
|
|
|
|
return {
|
|
return {
|
|
active,
|
|
active,
|
|
change: $_change,
|
|
change: $_change,
|