Skip to content

Commit

Permalink
url切换
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoubichuan committed Feb 7, 2024
1 parent 4e8502d commit fe93a82
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/.vuepress/components/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<slot>
<iframe
ref="iframe"
:src="url"
:src="getUrl"
width="100%"
height="520"
frameborder="no"
Expand Down Expand Up @@ -36,6 +36,14 @@ export default {
show: false,
};
},
computed: {
getUrl() {
if (location.href.includes("localhost:3009")) {
return "http://localhost:8090" + this.url;
}
return this.url;
},
},
methods: {
handleScroll() {
let judge =
Expand Down

0 comments on commit fe93a82

Please sign in to comment.