How to change linking line style like relinking

create a new link

relink style

how to keep line in a same style when create a new link and relink

Are you asking about LinkingBaseTool | GoJS API ?
You can certainly set its properties the way that you want.

I cannot tell what you want to do.