|
@@ -29,8 +29,8 @@
|
|
|
// import ModuleBottom from './original/moduleBottom.vue';
|
|
// import ModuleBottom from './original/moduleBottom.vue';
|
|
|
import { computed, ref } from 'vue';
|
|
import { computed, ref } from 'vue';
|
|
|
import ventBox1 from '/@/components/vent/ventBox1.vue';
|
|
import ventBox1 from '/@/components/vent/ventBox1.vue';
|
|
|
- import { openWindow } from '/@/utils';
|
|
|
|
|
import { getFormattedText } from '../hooks/helper';
|
|
import { getFormattedText } from '../hooks/helper';
|
|
|
|
|
+ import { useRedirect } from '../hooks/useRedirect';
|
|
|
// import { ModuleProps } from '../types';
|
|
// import { ModuleProps } from '../types';
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
@@ -51,6 +51,8 @@
|
|
|
const { header } = props.moduleData;
|
|
const { header } = props.moduleData;
|
|
|
const selectedData = ref();
|
|
const selectedData = ref();
|
|
|
|
|
|
|
|
|
|
+ const redirect = useRedirect();
|
|
|
|
|
+
|
|
|
const style = computed(() => {
|
|
const style = computed(() => {
|
|
|
const size = props.showStyle.size;
|
|
const size = props.showStyle.size;
|
|
|
const position = props.showStyle.position;
|
|
const position = props.showStyle.position;
|
|
@@ -73,7 +75,7 @@
|
|
|
function redirectTo() {
|
|
function redirectTo() {
|
|
|
const { to } = props.moduleData;
|
|
const { to } = props.moduleData;
|
|
|
if (!to) return;
|
|
if (!to) return;
|
|
|
- openWindow(getFormattedText(selectedData.value, to), { target: '_self' });
|
|
|
|
|
|
|
+ redirect(getFormattedText(selectedData.value, to));
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|