0kaka
V2EX  ›  问与答

antd-vue 的 table,插入了超链接,比如 xx.com,跳转总是变成 localhost/xx.com,变成了二级

  •  
  •   0kaka · May 13, 2020 · 1655 views
    This topic created in 2196 days ago, the information mentioned may be changed or developed.
    customRender: (value, row, index) => {
    return <a href={value} target="_blank">{value}</a>
    }

    href 在 chrome 查看也是正常的 xx.com ,但是点击就永远是 localhost/xx.com 。而我是要跳到 xx.com 的,有大神告知是什么原因引起的吗?
    4 replies    2020-05-13 17:28:54 +08:00
    wangxiang
        1
    wangxiang  
       May 13, 2020   ❤️ 1
    加 http?
    marcong95
        2
    marcong95  
       May 13, 2020   ❤️ 1
    你应该是漏了协议那部分,https://xx.com
    0kaka
        3
    0kaka  
    OP
       May 13, 2020
    @wangxiang
    @marcong95 呃呃呃 竟然就这个?哎 抽水了
    0kaka
        4
    0kaka  
    OP
       May 13, 2020
    @wangxiang
    @marcong95 😂低级错误 已感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1288 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:44 · PVG 07:44 · LAX 16:44 · JFK 19:44
    ♥ Do have faith in what you're doing.