mirror of
https://github.com/ArenMg/aren.git
synced 2024-11-24 09:28:03 +00:00
resolve baseurl problem
This commit is contained in:
parent
f82b9d8ea5
commit
1837aa5cc6
6 changed files with 33 additions and 35 deletions
|
@ -234,15 +234,13 @@ module.exports = {
|
|||
},
|
||||
copyToClipBoard(text) {
|
||||
const getUrl = window.location;
|
||||
let baseUrl =
|
||||
getUrl.protocol +
|
||||
"//" +
|
||||
getUrl.host +
|
||||
"/" +
|
||||
getUrl.pathname.split("/")[1];
|
||||
if (baseUrl.endsWith("/")) {
|
||||
baseUrl = baseUrl.slice(0, -1);
|
||||
}
|
||||
|
||||
// let baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
// if (baseUrl.endsWith("/")) {
|
||||
// baseUrl = baseUrl.slice(0, -1);
|
||||
// }
|
||||
|
||||
let baseUrl = getUrl.protocol + "//" + getUrl.host
|
||||
|
||||
navigator.clipboard.writeText(`${baseUrl}${text}`).then(
|
||||
function () {
|
||||
|
|
|
@ -171,11 +171,11 @@
|
|||
|
||||
<script>
|
||||
const getUrl = window.location;
|
||||
let baseUrl =
|
||||
getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
if (baseUrl.endsWith("/")) {
|
||||
baseUrl = baseUrl.slice(0, -1);
|
||||
}
|
||||
// let baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
// if (baseUrl.endsWith("/")) {
|
||||
// baseUrl = baseUrl.slice(0, -1);
|
||||
// }
|
||||
let baseUrl = getUrl.protocol + "//" + getUrl.host
|
||||
module.exports = {
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -131,11 +131,11 @@
|
|||
|
||||
<script>
|
||||
const getUrl = window.location;
|
||||
let baseUrl =
|
||||
getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
if (baseUrl.endsWith("/")) {
|
||||
baseUrl = baseUrl.slice(0, -1);
|
||||
}
|
||||
// let baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
// if (baseUrl.endsWith("/")) {
|
||||
// baseUrl = baseUrl.slice(0, -1);
|
||||
// }
|
||||
let baseUrl = getUrl.protocol + "//" + getUrl.host
|
||||
module.exports = {
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
<img
|
||||
alt="image"
|
||||
class="category-picture"
|
||||
v-bind:src="sondage.choices[0].img"
|
||||
src="assets/img/sondage.png"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -104,11 +104,11 @@
|
|||
|
||||
<script>
|
||||
const getUrl = window.location;
|
||||
let baseUrl =
|
||||
getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
if (baseUrl.endsWith("/")) {
|
||||
baseUrl = baseUrl.slice(0, -1);
|
||||
}
|
||||
// let baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
// if (baseUrl.endsWith("/")) {
|
||||
// baseUrl = baseUrl.slice(0, -1);
|
||||
// }
|
||||
let baseUrl = getUrl.protocol + "//" + getUrl.host
|
||||
module.exports = {
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -212,11 +212,11 @@
|
|||
</style>
|
||||
<script>
|
||||
const getUrl = window.location;
|
||||
let baseUrl =
|
||||
getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
if (baseUrl.endsWith("/")) {
|
||||
baseUrl = baseUrl.slice(0, -1);
|
||||
}
|
||||
// let baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
// if (baseUrl.endsWith("/")) {
|
||||
// baseUrl = baseUrl.slice(0, -1);
|
||||
// }
|
||||
let baseUrl = getUrl.protocol + "//" + getUrl.host
|
||||
module.exports = {
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -313,11 +313,11 @@
|
|||
|
||||
<script>
|
||||
const getUrl = window.location;
|
||||
let baseUrl =
|
||||
getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
if (baseUrl.endsWith("/")) {
|
||||
baseUrl = baseUrl.slice(0, -1);
|
||||
}
|
||||
// let baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split("/")[1];
|
||||
// if (baseUrl.endsWith("/")) {
|
||||
// baseUrl = baseUrl.slice(0, -1);
|
||||
// }
|
||||
let baseUrl = getUrl.protocol + "//" + getUrl.host
|
||||
Vue.component("modal", {
|
||||
template: "#modal-template",
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue