0kaka
V2EX  ›  问与答

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

  •  
  •   0kaka · May 13, 2020 · 1944 views
    This topic created in 2379 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
    wangxiang
    May 13, 2020❤️1
    1
    加 http?
    marcong95
    marcong95
    May 13, 2020❤️1
    2
    你应该是漏了协议那部分,https://xx.com ?
    0kaka
    0kaka
    OP
    May 13, 2020
    3
    @wangxiang
    @marcong95 呃呃呃 竟然就这个?哎 抽水了
    0kaka
    0kaka
    OP
    May 13, 2020
    4
    @wangxiang
    @marcong95 😂低级错误 已感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1062 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 19:09 · PVG 03:09 · LAX 11:09 · JFK 14:09
    ♥ Do have faith in what you're doing.