反应路由器模式状态在Hashrouter上无法唤醒

时间:2018-12-02 16:20:27

标签: reactjs

您好,我正在尝试在链接上显示模态,并在沙箱https://codesandbox.io/s/m7vy9zy1vj上修改此代码

问题是我尝试将 BrowserRouter 替换为 HashRouter ,并且模式停止工作,但该功能仍然有效。

from cx_Freeze import setup, Executable
import sys, os


shortcut_table = [
    ("DesktopShortcut",        # Shortcut
     "DesktopFolder",          # Directory_
     "program",           # Name
     "TARGETDIR",              # Component_
     "[TARGETDIR]main.exe",# Target
     None,                     # Arguments
     None,                     # Description
     None,                     # Hotkey
     "icon.ico",                     # Icon
     None,                     # IconIndex
     None,                     # ShowCmd
     'TARGETDIR'               # WkDir
     )
    ]

base = None
if sys.platform == "win32": base = "Win32GUI"

os.environ['TCL_LIBRARY'] = "C:\\Program Files\\Python35-32\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\Program Files\\Python35-32\\tcl\\tk8.6"


msi_data = {"Shortcut": shortcut_table}
bdist_msi_options = {'data': msi_data}

executables = [Executable("main.py", shortcutName='2048', shortcutDir='DesktopFolder', icon='icon.ico', base=base), Executable("extras.pyw"),]


setup(
    name = '2048',
    author = 'Ethan',
    options={
        "build_exe": {
            "packages":["pygame", "sys", "random", "os", "ctypes"],
            "include_files":["scores.txt",
            "icon.ico",
            ]
            }},
    executables = executables,
    version = "1.0"
)

来自index.js

build
   exe.win-amd64-3.6
      api-ms-win-crt-conio-l1-1-0.dll
      api-ms-win-crt-convert-l1-1-0.dll
      api-ms-win-crt-environment-l1-1-0.dll
      api-ms-win-crt-filesystem-l1-1-0.dll
      api-ms-win-crt-heap-l1-1-0.dll
      api-ms-win-crt-locale-l1-1-0.dll
      api-ms-win-crt-math-l1-1-0.dll
      api-ms-win-crt-process-l1-1-0.dll
      api-ms-win-crt-runtime-l1-1-0.dll
      api-ms-win-crt-stdio-l1-1-0.dll
      api-ms-win-crt-string-l1-1-0.dll
      api-ms-win-crt-time-l1-1-0.dll
      main.exe
      python36.dll
      VCRUNTIME140.dll

0 个答案:

没有答案