jeawin-astro 3.0.96 → 3.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeawin-astro",
3
- "version": "3.0.96",
3
+ "version": "3.0.97",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -206,13 +206,13 @@ export function render_url(url, base = '', queryObj = null, suffix = '.html') {
206
206
  str = url;
207
207
  } else {
208
208
  if (url == '/') {
209
- str = '/';
209
+ str = `${base || ''}/`;
210
210
  } else {
211
- str = `/${_.trimStart(url.replaceAll(suffix, ''), '/')}${suffix}`;
211
+ str = `${base || ''}/${_.trimStart(url.replaceAll(suffix, ''), '/')}${suffix}`;
212
212
  }
213
213
  }
214
214
  } else {
215
- str = '/';
215
+ str = `${base || ''}/`;
216
216
  }
217
217
 
218
218
  let queryStr = '';
@@ -229,7 +229,7 @@ export function render_url(url, base = '', queryObj = null, suffix = '.html') {
229
229
  queryStr = new_params.size ? `?${new_params.toString()}` : '';
230
230
  }
231
231
 
232
- return `${base || ''}${str}${queryStr}`;
232
+ return `${str}${queryStr}`;
233
233
  }
234
234
 
235
235
  /**