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