forked from mirrors/homebox
fix 3 places where API URLs were not constructed by function route (#451)
* Fixed 3 places where API URLs were not constructed by function route(path, params). * autofix --------- Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
27dad0e118
commit
06eb6c1f91
4 changed files with 12 additions and 7 deletions
|
@ -1,4 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { route } from "../../lib/api/base";
|
||||
|
||||
definePageMeta({
|
||||
middleware: ["auth"],
|
||||
layout: false,
|
||||
|
@ -176,7 +178,7 @@
|
|||
|
||||
const data = `${origin}/a/${assetID}`;
|
||||
|
||||
return `/api/v1/qrcode?data=${encodeURIComponent(data)}`;
|
||||
return route(`/qrcode`, { data: encodeURIComponent(data) });
|
||||
}
|
||||
|
||||
function getItem(n: number): LabelData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue