router

    -1熱度

    1回答

    我有一個適用於addsmanager組件的代碼,但他們做了一些更改,現在不再工作了。 舊的代碼是這樣 function getAdsmanagerRouteContent($id) { $db =JFactory::getDBO(); $sql = "SELECT category,ad_manufacturers,ad_modelauto,ad_jetmodels,ad_m

    0熱度

    4回答

    失敗道具類型:道具history標記爲Router中的要求,但其值爲undefined。 in Router ---------------------------------------------- ---- ///// index.js import {render} from 'react-dom'; import {Provider} from 'react-redux'; im

    0熱度

    1回答

    我有一個控制器具有多個功能與相同的路由器,所以我得到錯誤異常。 請指導我這個錯誤 Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'admin']], function() { Route::get('/dashboard','[email protected]'); Route::get('/dashb

    1熱度

    1回答

    我試圖用木偶來測試角度的應用程序。但是當我嘗試點擊一個鏈接(不是路由到相應的視圖)時它不起作用。 const browser = await puppeteer.launch({headless: false}); const page = await browser.newPage(); await page.goto('https://example.com', {waitUntil: '

    0熱度

    2回答

    我有兩個路線: { path: 'application/:groupId/:approved/:applicant-id', component: FooComponent }, { path: 'application/:groupId/applicant-detail/:applicant-id', component: BarComponent }, 所不同的是在第一個:

    1熱度

    1回答

    我是React新手,我正在使用react-router在路由之間重定向。問題是:我去一個路由,改變一些狀態,使用react-router的Link去另一個路由,然後回到最後一個路由,並且它仍然保持我之前改變的狀態。我正在研究react-boilerplate。那麼我做錯了什麼? 對不起,我英文很差。

    1熱度

    1回答

    只需要高層概述如何構建此功能。 我有一個身份驗證js對象(es6類),實例化一次,並使用JWT。 import { getRouteByName, getRouter } from 'appRouter' import axios from 'axios' let instance = null class AppAuthentication { constructor (htt

    0熱度

    1回答

    我正在開發一個reactjs應用程序 - 我創建了兩個菜單 - 頁眉/頁腳 - 我注意到了「活動」當我在頁面上導航時顯示狀態。 //當前問題 在主頁上到達家鄉鏈路是活動的標題菜單上,但是頁腳菜單上點擊時 - 隱私 - 隱私鏈接是活動的,但頭部的鏈接也在應該停用時仍然很活躍。 此外,當進入一個不存在的頁面時,如輸入/ home2 - 它應該跳轉到錯誤頁面,但它不 - 在路由器中干擾什麼? //土地主

    0熱度

    2回答

    我是Angular的新手。我試圖在localhost:4200/edit /:id上編輯一個項目,但我無法捕獲:id參數以從中獲取相應的編號(它應該是localhost:4200/edit/7之類的東西,例如)。當我輸出params.id到控制檯時,它總是顯示「未定義」。 我app.module.ts ... import { RouterModule} from '@angular/route

    2熱度

    1回答

    我目前正在創建一個應用程序Angular4,這是一個在線遊戲的UI。作爲這個應用程序的一個功能,有一個電話,它包含一個主要路由器插座和一個輔助路由器插座,負責顯示一些提示。由於使用了命名插座,用戶可以在輔助路線仍然顯示的同時在主路線上導航。 作爲一個獨立的,手機功能的偉大工程。 整個應用程序的結構如下: ## root.component.html ## <router-outlet><rout