Skip to content

Commit

Permalink
move noCache number to swate state (once per arcitect start now)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Feb 21, 2024
1 parent 60cf078 commit 78f0368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/renderer/src/SwateControlService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ArcControlService from './ArcControlService.ts';
const SwateControlService = {

props: reactive({
cacheNumber: Math.random()*1000,
object: null,
type: 0,
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/views/SwateView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const SwateAPI: SwateAPI = {
const init = async ()=>{
console.log('init');
iProps.loading = true;
iframe.value.setAttribute("src", "https://swate-alpha.nfdi4plants.org?is_swatehost=1&random="+Math.random()*1000);
iframe.value.setAttribute("src", "https://swate-alpha.nfdi4plants.org?is_swatehost=1&random="+SwateControlService.props.cacheNumber);
};
onMounted(() => {
Expand Down

0 comments on commit 78f0368

Please sign in to comment.