<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>SHAKAE</author_name>
  <author_url>https://blog.hatena.ne.jp/SHAKAE/</author_url>
  <blog_title>駆け出しエンジニアの勉強記録</blog_title>
  <blog_url>https://shakae.hatenadiary.com/</blog_url>
  <categories>
    <anon>Vue</anon>
  </categories>
  <description>【vueファイル / try{}catch{}を使う場合】 import {router} from '@inertiajs/vue3'; const deleteForm = async () =&gt; { const result = confirm('削除しますか？'); // confirmはダイアログを出すJSのメソッド if(result){ // OK選択でtrueが返されてこのブロック実行される try{ router.delete(route('user.office.destroy')); // 削除ルート通ってコントローラーのdestroyメソッド実行 router.get(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshakae.hatenadiary.com%2Fentry%2F2024%2F04%2F26%2F112950&quot; title=&quot;【Vue3 】削除ボタンでダイアログ表示（inertiaのrouter visitメソッド使用） - 駆け出しエンジニアの勉強記録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-26 11:29:50</published>
  <title>【Vue3 】削除ボタンでダイアログ表示（inertiaのrouter visitメソッド使用）</title>
  <type>rich</type>
  <url>https://shakae.hatenadiary.com/entry/2024/04/26/112950</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
