[Vuejs]-After switching with the router in the navbar, I get a loop when I start the download process electron-dl,electron-download-manager

0๐Ÿ‘

<div class="topPanel"><div id="panel"></div>
    <router-link to="Dashboard" class="topPanelItem textMenu" active-class="activeMenu">Home</router-link>
    <router-link to="Store" class="topPanelItem textMenu" active-class="activeMenu">Store</router-link>
    <div @click="checkdosya()" to="Play" id="logoBN" class="playButton">Play</div>
    <router-link to="News" class="topPanelItem textMenu" active-class="activeMenu">News</router-link>
    <div  @click="CreateAcc()" class="topPanelItem textMenu">Support</div>
    <div  @click="CreateAcc()" class="topPanelItem textMenu2">Forum</div>
    <div  @click="downloadmng()" class="topPanelItem textMenu2">Discord</div>
  </div>

https://cdn.discordapp.com/attachments/800760836217765888/1085288422995922994/dsada.txt

i cant share other code i share files

ipcMain.handle("downloadmng",(event,url)=>{
  downloader.download({
    url: url,
    onProgress: (progress,item) => {
      event.sender.send("progress",progress);
    }
  },function(error,info){
    event.sender.send("downloadmngtrue");
    event.sender.send("info",info)
  })

0๐Ÿ‘

there is a routing problem or there is a problem with the main,renderer

this main procress

    ipcMain.handle("downloadmng",(event,url)=>{
  downloader.download({
    url: url,
    onProgress: (progress,item) => {
      event.sender.send("progress",progress);
    }

this navbar

    <div class="topPanel"><div id="panel"></div>
    <router-link to="Dashboard" class="topPanelItem textMenu" active-class="activeMenu">Home</router-link>
    <router-link to="Store" class="topPanelItem textMenu" active-class="activeMenu">Store</router-link>
    <div @click="checkdosya()" to="Play" id="logoBN" class="playButton">Play</div>
    <router-link to="News" class="topPanelItem textMenu" active-class="activeMenu">News</router-link>
    <div  @click="CreateAcc()" class="topPanelItem textMenu">Support</div>
    <div  @click="CreateAcc()" class="topPanelItem textMenu2">Forum</div>
    <div  @click="downloadmng()" class="topPanelItem textMenu2">Discord</div>
  </div>

this download function

'
const url = "http://ipv4.download.thinkbroadband.com/100MB.zip"
ipcRenderer.invoke("downloadmng",url);

Leave a comment