|
@@ -91,12 +91,16 @@ const add = async () => {
|
|
|
};
|
|
|
|
|
|
const edit = async (row: any) => {
|
|
|
- const url = import.meta.env.VITE_SCREEN_URL + '?token=' + encodeURIComponent(Session.get('token')) + '#/chart/home/' + row.id;
|
|
|
+ localStorage.setItem('token', Session.get('token'));
|
|
|
+ const url = import.meta.env.VITE_SCREEN_URL + '#/chart/home/' + row.id;
|
|
|
+ // const url = import.meta.env.VITE_SCREEN_URL + '?token=' + encodeURIComponent(Session.get('token')) + '#/chart/home/' + row.id;
|
|
|
window.open(url);
|
|
|
};
|
|
|
|
|
|
const preview = async (row: any) => {
|
|
|
- const url = import.meta.env.VITE_SCREEN_URL + '?token=' + encodeURIComponent(Session.get('token')) + '#/chart/preview/' + row.id;
|
|
|
+ localStorage.setItem('token', Session.get('token'));
|
|
|
+ const url = import.meta.env.VITE_SCREEN_URL + '#/chart/preview/' + row.id;
|
|
|
+ // const url = import.meta.env.VITE_SCREEN_URL + '?token=' + encodeURIComponent(Session.get('token')) + '#/chart/preview/' + row.id;
|
|
|
window.open(url);
|
|
|
};
|
|
|
|