This commit is contained in:
2023-12-01 14:42:46 +05:00
parent 651edbe69f
commit 29148afe9c
10 changed files with 57 additions and 34 deletions
+5 -2
View File
@@ -104,7 +104,10 @@ function Card({
<div className="flex gap-2">
{manager && (
<Link to={`http://localhost:5001/scheduled/${scheduledSessionId}`} target="_blank">
<Link
to={`${import.meta.env.VITE_STREAM_URL}/scheduled/${scheduledSessionId}`}
target="_blank"
>
<Button>Начать</Button>
</Link>
)}
@@ -119,7 +122,7 @@ function Card({
</div>
<div className="absolute bottom-[2px] left-[272px] z-10">
{availableManagers?.length && (
{availableManagers && availableManagers.length > 0 && (
<SelectUser
shown={isShow}
selectedManagerId={manager?.id}
+1 -1
View File
@@ -24,7 +24,7 @@ function LoginPage() {
setisLoading(true);
const result: any = await ky
.post(import.meta.env.VITE_SERVER_URL + "/login", {
.post(import.meta.env.VITE_API_URL + "/login", {
json: {
username,
password,
+1 -1
View File
@@ -2,7 +2,7 @@ import ky from "ky";
import useAuthStore from "../stores/useAuthStore";
const api = ky.extend({
prefixUrl: `${import.meta.env.VITE_SERVER_URL}`,
prefixUrl: `${import.meta.env.VITE_API_URL}`,
hooks: {
beforeRequest: [
(request) => {