x
This commit is contained in:
+1
-1
@@ -103,8 +103,8 @@ func initWeb() {
|
|||||||
// 将路径转换为相对路径
|
// 将路径转换为相对路径
|
||||||
|
|
||||||
relPath, err := filepath.Rel(dir, path)
|
relPath, err := filepath.Rel(dir, path)
|
||||||
relPath = name + "/" + relPath
|
|
||||||
is_index := relPath == "main.js"
|
is_index := relPath == "main.js"
|
||||||
|
relPath = name + "/" + relPath
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user