我有这样的路线
\nimport React from "react"\nimport { Routes, Route } from "react-router-dom"\n...\n\nexport default function App() {\n return (\n <div className="App">\n <div className="content">\n <Routes>\n <Route path="/projects" element={<Projects/>} />\n <Route path="/projects/:id" element={<ProjectsDetails/>}/>\n <Route path=\'*\' element={<NotFound />} />\n </Routes>\n </div>\n </div>\n );\n}\nRun Code Online (Sandbox Code Playgroud)\n我可以毫无问题地导航这条路线。如果我刷新“ /projects ”页面,也不是问题。
\n我可以毫无问题地导航“ /projects/1 ”。但是如果我刷新那里的页面,我会收到错误“GET http://localhost:9200/projects/bundle.js net::ERR_ABORTED 404 (Not Found)”
\n主路由没有问题,但带参数的 url 有问题(页面刷新时)。
\n我该如何解决这个问题?
\n编辑
\n webpack.config\n\n ...\n devServer: \n {\n port: 9200,\n contentBase: path.join(__dirname, "/dist"),\n hot: true,\n watchContentBase: true,\n historyApiFallback: true,\n },\n …Run Code Online (Sandbox Code Playgroud) 我想加密字节数组.所以首先我在这个网站上试一试.
它计算了这一点
然后我使用System.Security.Cryptography 库并计算它.但它给了我不同的结果.你能帮我解决这个问题吗?
码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Security.Cryptography;
namespace DesfireCalculation
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
byte key_no = 0x00;
byte[] key = new byte[16] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, …Run Code Online (Sandbox Code Playgroud)