From 544035b07a886376207c749651a68c34190ce75c Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Wed, 22 Dec 2021 20:50:54 +0800
Subject: [PATCH] fix: url in preview
---
theme/tfo.html | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/theme/tfo.html b/theme/tfo.html
index cc6aa5c..0e2ca1e 100644
--- a/theme/tfo.html
+++ b/theme/tfo.html
@@ -187,10 +187,10 @@
-
+
-
+
@@ -300,7 +300,9 @@
var prePath = strFullPath.substring(0, pos);
var width = window.innerWidth;
// var postPath = strPath.substring(0, strPath.substr(1).indexOf('/') + 1);
- document.getElementById("url").value= prePath + "";
+ let url = location.href;
+ url = url.substr(0, url.length-8);
+ document.getElementById("url").value= url;
// document.getElementById("url").value= prePath + postPath + "";
if(width < 495) {
if(document.getElementById("office-a")) {
@@ -603,7 +605,7 @@
-
+
-
+